copyWith method

Customer copyWith({
  1. String? uuid,
  2. String? refCode,
  3. dynamic firstName,
  4. dynamic lastName,
  5. String? email,
  6. dynamic phoneNumber,
  7. num? totalSpendInUSD,
  8. String? businessId,
  9. String? userId,
  10. String? context,
  11. String? createdAtDateOnly,
  12. String? createdAt,
})

Implementation

Customer copyWith({
  String? uuid,
  String? refCode,
  dynamic firstName,
  dynamic lastName,
  String? email,
  dynamic phoneNumber,
  num? totalSpendInUSD,
  String? businessId,
  String? userId,
  String? context,
  String? createdAtDateOnly,
  String? createdAt,
}) =>
    Customer(
      uuid: uuid ?? this.uuid,
      refCode: refCode ?? this.refCode,
      firstName: firstName ?? this.firstName,
      lastName: lastName ?? this.lastName,
      email: email ?? this.email,
      phoneNumber: phoneNumber ?? this.phoneNumber,
      totalSpendInUSD: totalSpendInUSD ?? this.totalSpendInUSD,
      businessId: businessId ?? this.businessId,
      userId: userId ?? this.userId,
      context: context ?? this.context,
      createdAtDateOnly: createdAtDateOnly ?? this.createdAtDateOnly,
      createdAt: createdAt ?? this.createdAt,
    );