ValidationMessage class Null safety

This class is an utility for getting access to common names of validation messages.

Example

ReactiveTextField(
  formControlName: 'email',
  validationMessages: {
    ValidationMessage.required: 'The Email must not be empty',
    ValidationMessage.email: 'The Email must be a valid email'
  },
);

Constructors

ValidationMessage()

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

Constants

any → const String
Key text for any validation message.
'any'
compare → const String
Key text for group compare validation message.
'compare'
contains → const String
Key text for contains validation message.
'contains'
creditCard → const String
Key text for credit card numbers validation message.
'creditCard'
email → const String
Key text for email validation message.
'email'
equals → const String
Key text for equals validation message.
'requiredEquals'
max → const String
Key text for max validation message.
'max'
maxLength → const String
Key text for max length validation message.
'maxLength'
min → const String
Key text for min validation message.
'min'
minLength → const String
Key text for min length validation message.
'minLength'
mustMatch → const String
Key text for must match validation message.
'mustMatch'
number → const String
Key text for number validation message.
'number'
pattern → const String
Key text for pattern validation message.
'pattern'
required → const String
Key text for required validation message.
'required'
requiredTrue → const String
Key text for requiredTrue validation message.
'requiredTrue'