copyWith method

  1. @override
Selection<T> copyWith(
  1. T selection
)

Creates a copy with a different selection.

Implementation

@override
Selection<T> copyWith(T selection) => Selection(
      options: options,
      selected: selection,
    );