copyWith method

GearSelection copyWith({
  1. String? key,
  2. String? description,
  3. List<GearOption>? options,
  4. double? coins,
})

Implementation

GearSelection copyWith({
  String? key,
  String? description,
  List<GearOption>? options,
  double? coins,
}) =>
    GearSelection(
      key: key ?? this.key,
      description: description ?? this.description,
      options: options ?? this.options,
      coins: coins ?? this.coins,
    );