copyWith method
Simple contact info. Example:
final contact = PaymayaContact(
email:'paymaya@flutter.com',
phone:'0912345689',
);
Implementation
PaymayaContact copyWith({
String? email,
String? phone,
}) {
return PaymayaContact(
email: email ?? this.email,
phone: phone ?? this.phone,
);
}