ErrorType enum

Errors encountered when parsing phone numbers.

Inheritance

Constructors

ErrorType(String message)
const

Values

invalidCountryCode → const ErrorType
const ErrorType('Invalid country calling code')
notANumber → const ErrorType

This indicates the string passed is not a valid number. Either the string had less than 3 digits in it or had an invalid phone-context parameter. More specifically, the number failed to match the regular expression validPhoneNumber, rfc3966GlobalNumberDigits, or rfc3966Domainname.

const ErrorType('The string supplied did not seem to be a phone number')
tooShortAfterIdd → const ErrorType

This indicates the string started with an international dialing prefix, but after this was stripped from the number, had less digits than any valid phone number (including country calling code) could have.

const ErrorType('Phone number too short after IDD')
tooShortNsn → const ErrorType

This indicates the string, after any country calling code has been stripped, had less digits than any valid phone number could have.

const ErrorType('The string supplied is too short to be a phone number')
tooLong → const ErrorType

This indicates the string had more digits than any valid phone number could have.

const ErrorType('The string supplied is too long to be a phone number')

Properties

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

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<ErrorType>
A constant List of the values in this enum, in order of their declaration.