copyWith method

UserInfo copyWith({
  1. String? userId,
  2. String? email,
  3. String? fullName,
  4. String? firstName,
  5. String? lastName,
  6. String? profileImage,
  7. String? username,
  8. bool? emailVerified,
  9. String? locale,
  10. String? zoneinfo,
  11. DateTime? updatedAt,
  12. Map<String, dynamic>? additionalData,
})

Creates a copy of this UserInfo with updated fields

Implementation

UserInfo copyWith({
  String? userId,
  String? email,
  String? fullName,
  String? firstName,
  String? lastName,
  String? profileImage,
  String? username,
  bool? emailVerified,
  String? locale,
  String? zoneinfo,
  DateTime? updatedAt,
  Map<String, dynamic>? additionalData,
}) {
  return UserInfo(
    userId: userId ?? this.userId,
    email: email ?? this.email,
    fullName: fullName ?? this.fullName,
    firstName: firstName ?? this.firstName,
    lastName: lastName ?? this.lastName,
    profileImage: profileImage ?? this.profileImage,
    username: username ?? this.username,
    emailVerified: emailVerified ?? this.emailVerified,
    locale: locale ?? this.locale,
    zoneinfo: zoneinfo ?? this.zoneinfo,
    updatedAt: updatedAt ?? this.updatedAt,
    additionalData: additionalData ?? this.additionalData,
  );
}