new project stable version
This commit is contained in:
38
lib/domain/entities/user_profile.dart
Normal file
38
lib/domain/entities/user_profile.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
class UserProfile {
|
||||
String name;
|
||||
String birthDate;
|
||||
String phone;
|
||||
String email;
|
||||
int? balance;
|
||||
int? avatarId;
|
||||
String? avatarUrl;
|
||||
|
||||
UserProfile({
|
||||
required this.name,
|
||||
required this.birthDate,
|
||||
required this.phone,
|
||||
required this.email,
|
||||
this.balance,
|
||||
this.avatarId,
|
||||
this.avatarUrl,
|
||||
});
|
||||
|
||||
UserProfile copyWith({
|
||||
String? name,
|
||||
String? birthDate,
|
||||
String? email,
|
||||
int? balance,
|
||||
int? avatarId,
|
||||
String? avatarUrl,
|
||||
}) {
|
||||
return UserProfile(
|
||||
name: name ?? this.name,
|
||||
birthDate: birthDate ?? this.birthDate,
|
||||
phone: phone, // телефон не меняется
|
||||
email: email ?? this.email,
|
||||
balance: balance ?? this.balance,
|
||||
avatarId: avatarId ?? this.avatarId,
|
||||
avatarUrl: avatarUrl ?? this.avatarUrl,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user