SelectionImpl<T> constructor

SelectionImpl<T>({
  1. List<T> selected = const [],
  2. bool useStaging = false,
  3. bool singleValue = false,
  4. StateCallback<SelectionState>? onStateChanged,
})

Implementation

SelectionImpl({
  List<T> selected = const [],
  this.useStaging = false,
  this.singleValue = false,
  this.onStateChanged,
})  : _selected = LinkedHashSet.from(selected),
      _staging = LinkedHashSet(),
      _state = SelectionState(
        selected: selected.toSet(),
        staging: {},
      );