min<T> static method

FormFieldValidator<T> min<T>(
  1. num min, {
  2. bool inclusive = true,
  3. String? errorText,
  4. bool checkNullOrEmpty = true,
})

FormFieldValidator that requires the field's value to be greater than (or equal) to the provided number.

Parameters:

  • min The minimum value to compare.
  • inclusive Whether the comparison is inclusive (default: true).
  • errorText The error message when the value is invalid.
  • checkNullOrEmpty Whether to check for null or empty values.

Implementation

static FormFieldValidator<T> min<T>(
  num min, {
  bool inclusive = true,
  String? errorText,
  bool checkNullOrEmpty = true,
}) => MinValidator<T>(
  min,
  inclusive: inclusive,
  errorText: errorText,
  checkNullOrEmpty: checkNullOrEmpty,
).validate;