PhoneResult class
result of phone number validation
Constructors
-
PhoneResult({required bool isValid, String? normalizedNumber, String? errorMessage, PhoneErrorCode? typeCodeError, EcMessageKey? messageKey, Map<
String, Object?> messageArgs = const {}})
Properties
- errorMessage → String?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
final
-
messageArgs
→ Map<
String, Object?> -
final
- messageKey → EcMessageKey?
-
final
- normalizedNumber → String?
-
normalized phone number if valid, otherwise null
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeCodeError → PhoneErrorCode?
-
error code if invalid, otherwise null
final
Methods
-
messageIn(
EcValidationsMessages messages) → String? -
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