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