copyWith method

GearChoice copyWith({
  1. String? key,
  2. String? description,
  3. List<GearSelection>? selections,
  4. List<int>? preselect,
  5. int? maxSelections,
})

Implementation

GearChoice copyWith({
  String? key,
  String? description,
  List<GearSelection>? selections,
  List<int>? preselect,
  int? maxSelections,
}) =>
    GearChoice(
      key: key ?? this.key,
      description: description ?? this.description,
      selections: selections ?? this.selections,
      preselect: preselect ?? this.preselect,
      maxSelections: maxSelections ?? this.maxSelections,
    );