PhoneNumberInfo class final

Contains information about a phone number

Inheritance

Constructors

PhoneNumberInfo({CountryInfo? country, required String countryCallingCode, required String formattedPhoneNumber, required bool isAnonymous, dynamic extra, int? clientId})
Contains information about a phone number
const
PhoneNumberInfo.fromJson(Map<String, dynamic> json)
Parses a PhoneNumberInfo from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
country → CountryInfo?
Information about the country to which the phone number belongs; may be null
final
countryCallingCode → String
The part of the phone number denoting country calling code or its part
final
extra → dynamic
"@extra" of the request this object answers.
final
formattedPhoneNumber → String
The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as '-', but even more digits might be entered by the user
final
hashCode → int
The hash code for this object.
no setterinherited
isAnonymous → bool
True, if the phone number was bought on Fragment and isn't tied to a SIM card
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({CountryInfo? country()?, String? countryCallingCode, String? formattedPhoneNumber, bool? isAnonymous, dynamic extra, int? clientId}) → PhoneNumberInfo
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.