between static method

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

Creates a Between validation rule.

This rule checks if a string's length is between min and max (inclusive). It can include a custom validation message.

Implementation

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