PhoneValidator class
Validator for Ecuadorian phone numbers.
Accepts mobile (0991234567) and landline (022345678) numbers, in local
or international (+593991234567) notation.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
isValid(
String phoneNumber) → PhoneResult -
Validates if an Ecuadorian phone number is valid in either local
(
0991234567) or international (+593991234567) notation. -
isValidInternational(
String phoneNumber) → PhoneResult - Validates if an international Ecuadorian phone number is valid.
-
isValidLocal(
String phoneNumber) → PhoneResult - Validates if a local Ecuadorian phone number is valid.