copyWith method

Contact copyWith({
  1. String? phoneNumber,
  2. String? firstName,
  3. String? lastName,
  4. String? vcard,
  5. int? userId,
})

Implementation

Contact copyWith({
  String? phoneNumber,
  String? firstName,
  String? lastName,
  String? vcard,
  int? userId,
}) =>
    Contact(
      phoneNumber: phoneNumber ?? this.phoneNumber,
      firstName: firstName ?? this.firstName,
      lastName: lastName ?? this.lastName,
      vcard: vcard ?? this.vcard,
      userId: userId ?? this.userId,
    );