ErrorType enum
Errors encountered when parsing phone numbers.
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
, orrfc3966Domainname
.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
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