copy method

Selection<T> copy({
  1. bool? selected,
  2. bool? loading,
  3. String? id,
  4. T? data,
})

Implementation

Selection<T> copy({
  bool? selected,
  bool? loading,
  String? id,
  T? data,
}) {
  return Selection(
    id: id ?? this.id,
    data: data ?? this.data,
    loading: loading ?? this.loading,
    selected: selected ?? this.selected,
  );
}