EqualsValidator<T> constructor

const EqualsValidator<T>(
  1. T value, {
  2. String validationMessage = ValidationMessage.equals,
})

Constructs an instance of EqualsValidator.

The argument value must not be null.

The argument validationMessage is optional and specify the key text for the validation error. I none value is supplied then the default value is ValidationMessage.equals.

Implementation

const EqualsValidator(
  this.value, {
  this.validationMessage = ValidationMessage.equals,
}) : super();