FMultiSelectGroupController<T> constructor

FMultiSelectGroupController<T>({
  1. int min = 0,
  2. int? max,
  3. Set<T> values = const {},
})

Creates a FMultiSelectGroupController.

The min and max values are the minimum and maximum number of selections allowed. Defaults to no minimum or maximum.

Contract:

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.');