copyWith method

GearOption copyWith({
  1. String? key,
  2. Item? item,
  3. double? amount,
})

Implementation

GearOption copyWith({
  String? key,
  Item? item,
  double? amount,
}) =>
    GearOption(
      key: key ?? this.key,
      item: item ?? this.item,
      amount: amount ?? this.amount,
    );