ValidationResult enum
Possible outcomes when testing if a PhoneNumber is possible.
Values
- isPossible → const ValidationResult
-
The number length matches that of valid numbers for this region.
- isPossibleLocalOnly → const ValidationResult
-
The number length matches that of local numbers for this region only (i.e. numbers that may be able to be dialled within an area, but do not have all the information to be dialled from anywhere inside or outside the country).
- invalidCountryCode → const ValidationResult
-
The number has an invalid country calling code.
- tooShort → const ValidationResult
-
The number is shorter than all valid numbers for this region.
- invalidLength → const ValidationResult
-
The number is longer than the shortest valid numbers for this region, shorter than the longest valid numbers for this region, and does not itself have a number length that matches valid numbers for this region. This can also be returned in the case where isPossibleNumberForTypeWithReason was called, and there are no numbers of this type at all for this region.
- tooLong → const ValidationResult
-
The number is longer than all valid numbers for this region.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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<
ValidationResult> - A constant List of the values in this enum, in order of their declaration.