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