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