PhoneNumberFormat enum

/**

  • INTERNATIONAL and NATIONAL formats are consistent with the definition in
  • ITU-T Recommendation E123. 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.
  • @enum {number} */ i18n.phonenumbers.PhoneNumberFormat = { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 };
Inheritance

Constructors

PhoneNumberFormat({required int value})
const

Values

E164 → const PhoneNumberFormat
const PhoneNumberFormat(value: 0)
INTERNATIONAL → const PhoneNumberFormat
const PhoneNumberFormat(value: 1)
NATIONAL → const PhoneNumberFormat
const PhoneNumberFormat(value: 2)
RFC3966 → const PhoneNumberFormat
const PhoneNumberFormat(value: 3)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

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

Static Methods

fromIndex(int? index) PhoneNumberFormat

Constants

values → const List<PhoneNumberFormat>
A constant List of the values in this enum, in order of their declaration.