ValidationMessage class

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.
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

Constants

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