SocialMedia class

Social media / instant messaging profile.

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 both map to SocialMedia.

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

Constructors

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

Properties

customLabel String
Custom label, if label is SocialMediaLabel.custom.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
label SocialMediaLabel
Label / platform (default SocialMediaLabel.other).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userName String
Handle / username / login.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override
toVCard() List<String>

Operators

operator ==(Object o) bool
The equality operator.
override