EndsWithValidator constructor

const EndsWithValidator(
  1. String suffix, {
  2. String? errorText,
  3. bool checkNullOrEmpty = true,
})

Constructor for the ends with validator.

Implementation

const EndsWithValidator(
  this.suffix, {

  /// {@macro base_validator_error_text}
  super.errorText,

  /// {@macro base_validator_null_check}
  super.checkNullOrEmpty,
});