copyWith method

User copyWith({
  1. String? id,
  2. String? email,
  3. String? mobileE164,
  4. String? mobileIso2,
  5. String? firstName,
  6. String? lastName,
})

Implementation

User copyWith({
  String? id,
  String? email,
  String? mobileE164,
  String? mobileIso2,
  String? firstName,
  String? lastName,
}) {
  return User(
    id: id ?? this.id,
    email: email ?? this.email,
    mobileE164: mobileE164 ?? this.mobileE164,
    mobileIso2: mobileIso2 ?? this.mobileIso2,
    firstName: firstName ?? this.firstName,
    lastName: lastName ?? this.lastName,
  );
}