SocialMedia class Null safety

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.
read / write
hashCode int
The hash code for this object. [...]
read-only, override
label SocialMediaLabel
Label / platform (default SocialMediaLabel.other).
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
userName String
Handle / username / login.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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