length static method

TextValidator length(
  1. int minLength,
  2. int maxLength, {
  3. bool allowEmpty = false,
  4. bool trim = false,
  5. String? message,
})

Implementation

static TextValidator length(int minLength, int maxLength, {bool allowEmpty = false, bool trim = false, String? message}) {
  return LengthValidator(minLength: minLength, maxLength: maxLength, allowEmpty: allowEmpty, trim: trim, message: message).call;
}