Contact class final

Describes a user contact

Inheritance

Constructors

Contact({required String phoneNumber, required String firstName, required String lastName, required String vcard, required int userId})
Describes a user contact
const
Contact.fromJson(Map<String, dynamic> json)
Parses a Contact from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
firstName → String
First name of the user; 1-255 characters in length
final
hashCode → int
The hash code for this object.
no setterinherited
lastName → String
Last name of the user
final
phoneNumber → String
Phone number of the user
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → int
Identifier of the user, if known; 0 otherwise
final
vcard → String
Additional data about the user in a form of vCard; 0-2048 bytes in length
final

Methods

copyWith({String? phoneNumber, String? firstName, String? lastName, String? vcard, int? userId}) → Contact
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.