betweenValue static method

ValidationRule<String> betweenValue({
  1. required num min,
  2. required num max,
  3. String? message,
})

Create a BetweenValue validation rule.

This rule checks if a numeric value is between min and max (inclusive). /// It can include a custom validation message.

Implementation

static ValidationRule<String> betweenValue(
        {required num min, required num max, String? message}) =>
    BetweenValue(min, max, message: message);