add city
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -8,6 +8,7 @@ class MyUser extends Equatable {
|
||||
final String? phone;
|
||||
final String? name;
|
||||
final String? nickname;
|
||||
final String? city;
|
||||
final String? picture;
|
||||
final String? birthday;
|
||||
final String? gender;
|
||||
@@ -18,6 +19,7 @@ class MyUser extends Equatable {
|
||||
this.phone,
|
||||
this.name,
|
||||
this.nickname,
|
||||
this.city,
|
||||
this.picture,
|
||||
this.birthday,
|
||||
this.gender,
|
||||
@@ -36,6 +38,7 @@ class MyUser extends Equatable {
|
||||
phone: '',
|
||||
name: '',
|
||||
nickname: '',
|
||||
city: '',
|
||||
picture: '',
|
||||
birthday: '',
|
||||
gender: '',
|
||||
@@ -48,6 +51,7 @@ class MyUser extends Equatable {
|
||||
String? phone,
|
||||
String? name,
|
||||
String? nickname,
|
||||
String? city,
|
||||
String? picture,
|
||||
String? birthday,
|
||||
String? gender,
|
||||
@@ -58,6 +62,7 @@ class MyUser extends Equatable {
|
||||
phone: phone ?? this.phone,
|
||||
name: name ?? this.name,
|
||||
nickname: nickname ?? this.nickname,
|
||||
city: city ?? this.city,
|
||||
picture: picture ?? this.picture,
|
||||
birthday: birthday ?? this.birthday,
|
||||
gender: gender ?? this.gender,
|
||||
@@ -77,6 +82,7 @@ class MyUser extends Equatable {
|
||||
phone: phone,
|
||||
name: name,
|
||||
nickname: nickname,
|
||||
city: city,
|
||||
picture: picture,
|
||||
birthday: birthday,
|
||||
gender: gender,
|
||||
@@ -90,6 +96,7 @@ class MyUser extends Equatable {
|
||||
phone: entity.phone,
|
||||
name: entity.name,
|
||||
nickname: entity.nickname,
|
||||
city: entity.city,
|
||||
picture: entity.picture,
|
||||
birthday: entity.birthday,
|
||||
gender: entity.gender,
|
||||
@@ -97,6 +104,15 @@ class MyUser extends Equatable {
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props =>
|
||||
[id, email, phone, name, nickname, picture, birthday, gender];
|
||||
List<Object?> get props => [
|
||||
id,
|
||||
email,
|
||||
phone,
|
||||
name,
|
||||
nickname,
|
||||
city,
|
||||
picture,
|
||||
birthday,
|
||||
gender,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user