copyWith method

Equipment copyWith({
  1. int? id,
  2. String? name,
  3. String? photo,
  4. int? width,
  5. int? height,
  6. int? length,
  7. int? maxWeight,
  8. int? maxRange,
  9. int? maxVolume,
})

Implementation

Equipment copyWith({
  int? id,
  String? name,
  String? photo,
  int? width,
  int? height,
  int? length,
  int? maxWeight,
  int? maxRange,
  int? maxVolume,
}) =>
    Equipment(
      id: id ?? this.id,
      name: name ?? this.name,
      photo: photo ?? this.photo,
      width: width ?? this.width,
      height: height ?? this.height,
      length: length ?? this.length,
      maxWeight: maxWeight ?? this.maxWeight,
      maxRange: maxRange ?? this.maxRange,
      maxVolume: maxVolume ?? this.maxVolume,
    );