PhoneValidator class abstract

Constructors

PhoneValidator()

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 Properties

none PhoneNumberInputValidator
no setter

Static Methods

compose(List<PhoneNumberInputValidator> validators) PhoneNumberInputValidator
allow to compose several validators Note that validator list order is important as first validator failing will return according message.
required(BuildContext context, {String? errorText}) PhoneNumberInputValidator
valid(BuildContext context, {String? errorText}) PhoneNumberInputValidator
validCountry(BuildContext context, List<IsoCode> expectedCountries, {String? errorText}) PhoneNumberInputValidator
validFixedLine(BuildContext context, {String? errorText}) PhoneNumberInputValidator
convenience shortcut method for invalidType(context, PhoneNumberType.fixedLine, ...)
validMobile(BuildContext context, {String? errorText}) PhoneNumberInputValidator
convenience shortcut method for invalidType(context, PhoneNumberType.mobile, ...)
validType(BuildContext context, PhoneNumberType expectedType, {String? errorText}) PhoneNumberInputValidator