PhoneNumberFormat enum
international and national formats are consistent with the definition in ITU-T Recommendation E.123. However we follow local conventions such as using '-' instead of whitespace as separators. For example, the number of the Google Switzerland office will be written as '+41 44 668 1800' in international format, and as '044 668 1800' in national format. e164 format is as per international format but with no formatting applied, e.g. '+41446681800'. rfc3966 is as per international format, but with all spaces and other separating symbols replaced with a hyphen, and with any phone number extension appended with ';ext='. It also will have a prefix of 'tel:' added, e.g. 'tel:+41-44-668-1800'.
Note: If you are considering storing the number in a neutral format, you are highly advised to use the PhoneNumber class.
Values
- e164 → const PhoneNumberFormat
- international → const PhoneNumberFormat
- national → const PhoneNumberFormat
- rfc3966 → const PhoneNumberFormat
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PhoneNumberFormat> - A constant List of the values in this enum, in order of their declaration.