FMultiValueNotifier<T> constructor

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

Creates a FMultiValueNotifier with a min and max number of elements allowed. Defaults to no min and max.

Contract:

min and max must be: 0 <= min <= max.

Implementation

FMultiValueNotifier({Set<T> value = const {}, int min = 0, int? max})
  : _min = min,
    _max = max,
    assert(debugCheckInclusiveRange<FMultiValueNotifier<T>>(min, max)),
    super(value);