SocialMedia class

A social media or instant messaging account.

Android and iOS define a few special account types (some of them defunct) like AIM, MSN, Jabber, Netmeeting.

iOS distinguishes between instant messaging and social media but doesn't define any special account types. The default app does list a few, marked with *️⃣ in the list below.

We add a few special values of our own, like Instagram, Twitter, TikTok, Discord, etc. Source: https://buffer.com/library/social-media-sites/

Annotations

Constructors

SocialMedia(String userName, {SocialMediaLabel label: SocialMediaLabel.other, String customLabel: ""})
SocialMedia.fromJson(Map<String, dynamic> json)
factory

Properties

customLabel String
If customLabel is SocialMediaLabel.custom, free-form user-chosen label.
@JsonKey(defaultValue: ""), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
label SocialMediaLabel
The label or type of SocialMedia it is. If custom, the free-form label can be found in customLabel.
@JsonKey(defaultValue: SocialMediaLabel.other), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
userName String
The username/handle/login/URL
@JsonKey(required: true), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited