copyWith method
Implementation
VariableCostsModel copyWith({
double? cost,
String? costName,
DateTime? createdAt,
String? id,
DateTime? updatedAt,
}) {
return VariableCostsModel(
cost: cost ?? this.cost,
costName: costName ?? this.costName,
createdAt: createdAt ?? this.createdAt,
id: id ?? this.id,
updatedAt: updatedAt ?? this.updatedAt,
);
}