StartsWithValidator constructor

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

Constructor for the starts with validator.

Implementation

const StartsWithValidator(
  this.prefix, {

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

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