copyWith method

Passport copyWith({
  1. String? country,
  2. String? expiry,
  3. String? number,
})

Implementation

Passport copyWith({String? country, String? expiry, String? number}) {
  return Passport(
      country: country ?? this.country,
      expiry: expiry ?? this.expiry,
      number: number ?? this.number);
}