copyWith method

InvertersModel copyWith({
  1. bool? availability,
  2. String? brand,
  3. DateTime? createdAt,
  4. String? id,
  5. double? power,
  6. double? price,
  7. DateTime? updatedAt,
})

Implementation

InvertersModel copyWith({
  bool? availability,
  String? brand,
  DateTime? createdAt,
  String? id,
  double? power,
  double? price,
  DateTime? updatedAt,
}) {
  return InvertersModel(
    availability: availability ?? this.availability,
    brand: brand ?? this.brand,
    createdAt: createdAt ?? this.createdAt,
    id: id ?? this.id,
    power: power ?? this.power,
    price: price ?? this.price,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}