copyWith method

Item copyWith({
  1. String? label,
  2. String? symbol,
  3. String? id,
  4. bool? boxTwo,
  5. int? color,
})

Implementation

Item copyWith({
  String? label,
  String? symbol,
  String? id,
  bool? boxTwo,
  int? color,
}) {
  return Item(
    label: label ?? this.label,
    symbol: symbol ?? this.symbol,
    id: id ?? this.id,
    boxTwo: boxTwo ?? this.boxTwo,
    color: color ?? this.color,
  );
}