copyWith method

PaymayaContact copyWith({
  1. String? email,
  2. String? phone,
})

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