digitsBetween static method

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

Creates a DigitsBetween validation rule.

This rule checks if a string contains between min and max digits (inclusive). It can include a custom validation message.

Implementation

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