Validation class Null safety

Offers functions testing some things like phone numbers. All methods are static and sync.

Constructors

Validation()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

regExprBool RegExp
final
regExprEMail RegExp
final
regExprInt RegExp
final
regExprNat RegExp
final
regExprPhoneNumber RegExp
final

Static Methods

isBool(String text) bool
Tests whether text is a valid boolean value. Allowed: 'true', 'false', 'yes', 'no' 't', 'f' (case insensitive)
isEmail(String text) bool
Tests whether text is a valid email address.
isFloat(String text) bool
Tests whether text is a valid integer.
isInt(String text) bool
Tests whether text is a valid integer.
isNat(String text) bool
Tests whether text is a valid integer.
isPhoneNumber(String text) bool
Tests whether text is a valid phone number.