SelectionImpl<T> constructor
SelectionImpl<T> ({
- List<
T> selected = const [], - bool useStaging = false,
- bool singleValue = false,
- 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: {},
);