copyWith method
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,
);
}