copyWith method

QuotesModel copyWith({
  1. String? billId,
  2. Map<String, dynamic>? calculations,
  3. DateTime? createdAt,
  4. String? customerEmail,
  5. String? id,
  6. double? systemSize,
  7. double? totalCost,
  8. DateTime? updatedAt,
})

Implementation

QuotesModel copyWith({
  String? billId,
  Map<String, dynamic>? calculations,
  DateTime? createdAt,
  String? customerEmail,
  String? id,
  double? systemSize,
  double? totalCost,
  DateTime? updatedAt,
}) {
  return QuotesModel(
    billId: billId ?? this.billId,
    calculations: calculations ?? this.calculations,
    createdAt: createdAt ?? this.createdAt,
    customerEmail: customerEmail ?? this.customerEmail,
    id: id ?? this.id,
    systemSize: systemSize ?? this.systemSize,
    totalCost: totalCost ?? this.totalCost,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}