rangeSelected<T> static method
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);