RegExpValidator class

A validator used to validate using regular expressions. Out of the box we have various expressions ready for use - such as phone #s and email addresses. But you may always add your own.

Constructors

RegExpValidator(String key, String expression)

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
no setterinherited
message String
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isValid(dynamic value) bool
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

isValidEmailAddress(String? value) bool
isValidUSPhoneNumber(String? value) bool