copyWith method
Implementation
CustomerData copyWith({
int? id,
String? code,
String? name,
bool? vip,
Value<String?> address = const Value.absent(),
Value<String?> phone = const Value.absent(),
String? email,
Value<String?> imagePath = const Value.absent(),
}) => CustomerData(
id: id ?? this.id,
code: code ?? this.code,
name: name ?? this.name,
vip: vip ?? this.vip,
address: address.present ? address.value : this.address,
phone: phone.present ? phone.value : this.phone,
email: email ?? this.email,
imagePath: imagePath.present ? imagePath.value : this.imagePath,
);