Modifs MVVM

This commit is contained in:
2025-03-12 17:49:23 +01:00
parent 2b8e7085aa
commit 456d0bb4b8
12 changed files with 287 additions and 401 deletions

View File

@ -41,4 +41,23 @@ class UserModel {
'phoneNumber': phoneNumber,
};
}
UserModel copyWith({
String? firstName,
String? lastName,
String? role,
String? profilePhotoUrl,
String? email,
String? phoneNumber,
}) {
return UserModel(
uid: uid, // L'UID ne change pas
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
role: role ?? this.role,
profilePhotoUrl: profilePhotoUrl ?? this.profilePhotoUrl,
email: email ?? this.email,
phoneNumber: phoneNumber ?? this.phoneNumber,
);
}
}