This commit is contained in:
Felipe
2024-03-13 14:38:47 -05:00
parent a25bc6a987
commit 6806703360
4 changed files with 68 additions and 16 deletions
@@ -6,6 +6,7 @@ class MyUserEntity extends Equatable {
final String? phone;
final String? name;
final String? nickname;
final String? city;
final String? picture;
final String? birthday;
final String? gender;
@@ -16,6 +17,7 @@ class MyUserEntity extends Equatable {
required this.phone,
required this.name,
required this.nickname,
required this.city,
required this.picture,
required this.birthday,
required this.gender,
@@ -28,6 +30,7 @@ class MyUserEntity extends Equatable {
'phone': phone,
'name': name,
'nickname': name?.trim().toLowerCase(),
'city': city,
'picture': picture,
'birthday': birthday,
'gender': gender,
@@ -41,6 +44,7 @@ class MyUserEntity extends Equatable {
phone: doc['phone'] as String?,
name: doc['name'] as String?,
nickname: doc['nickname'] as String?,
city: doc['city'] as String?,
picture: doc['picture'] as String?,
birthday: doc['birthday'] as String?,
gender: doc['gender'] as String?,
@@ -49,7 +53,7 @@ class MyUserEntity extends Equatable {
@override
List<Object?> get props =>
[id, email, phone, name, nickname, picture, birthday, gender];
[id, email, phone, name, nickname, city, picture, birthday, gender];
@override
String toString() {
@@ -59,6 +63,7 @@ class MyUserEntity extends Equatable {
phone: $phone
name: $name
nickname: $nickname
city: $city
picture: $picture
birthday: $birthday
gender: $gender