FMultiSelectGroupController<T> constructor
Creates a FMultiSelectGroupController.
The min
and max
values are the minimum and maximum number of selections allowed. Defaults to no minimum or maximum.
Contract:
- Throws AssertionError if
min
< 0. - Throws AssertionError if
max
< 0. - Throws AssertionError if
min
>max
.
Implementation
FMultiSelectGroupController({
int min = 0,
int? max,
super.values,
}) : _min = min,
_max = max,
assert(min >= 0, 'The min value must be greater than or equal to 0.'),
assert(max == null || max >= 0, 'The max value must be greater than or equal to 0.'),
assert(max == null || min <= max, 'The max value must be greater than or equal to the min value.');