rangeSelected<T> static method

ValidationRule<Iterable<T>?> rangeSelected<T>({
  1. required int min,
  2. required int max,
  3. String? message,
})

Creates a RangeSelected validation rule.

This rule checks if the number of selected items in an iterable is within the range of min to max (inclusive). It can include a custom validation message.

Implementation

static ValidationRule<Iterable<T>?> rangeSelected<T>(
        {required int min, required int max, String? message}) =>
    RangeSelected<T>(min, max, message: message);