AddContact class

Inheritance

Constructors

AddContact({Contact contact, bool sharePhoneNumber})
Adds a user to the contact list or edits an existing contact by their user identifier
AddContact.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

contact Contact
contact The contact to add or edit; phone number can be empty and needs to be specified only if known, vCard is ignored
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sharePhoneNumber bool
sharePhoneNumber True, if the new contact needs to be allowed to see current user's phone number. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. Use the field UserFullInfo.need_phone_number_privacy_exception to check whether the current user needs to be asked to share their phone number
read / write

Methods

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

Operators

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

Constants

CONSTRUCTOR → const String
'addContact'