copyWith method

  1. @override
OptionalSelection<T> copyWith(
  1. T? selection
)

Creates a copy with a different selection.

Implementation

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