PhoneNumber class

Represents a successfully parsed phone number

Annotations

Constructors

PhoneNumber({required String countryCode, required String e164, required String national, required PhoneNumberType type, required String international, required String nationalNumber})
const
PhoneNumber.fromJson(Map<String, dynamic> json)
factory

Properties

countryCode String
ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard1 published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest.
final
e164 String
E.164 is an international standard (ITU-T Recommendation), titled The international public telecommunication numbering plan, that defines a numbering plan for the worldwide public switched telephone network (PSTN) and some other data networks.
final
hashCode int
The hash code for this object.
no setteroverride
international String
Example: +1 417-555-5470
final
national String
Example: (417) 555-5470
final
nationalNumber String
Example: 4175555470
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PhoneNumberType
Example: PhoneNumberType.FIXED_LINE_OR_MOBILE
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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