copyWith method

SelectionState<T> copyWith({
  1. Set<T>? selected,
  2. Set<T>? staging,
})

Implementation

SelectionState<T> copyWith({
  Set<T>? selected,
  Set<T>? staging,
}) =>
    SelectionState(
      selected: selected ?? this.selected,
      staging: staging ?? this.staging,
    );