feat: refactor code
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/// موجودیتِ کاربر (نام نمایشی و آواتار برای استفاده در UI).
|
||||
class UserEntity {
|
||||
final int id;
|
||||
final String mobile;
|
||||
final String? firstName;
|
||||
final String? avatar;
|
||||
|
||||
const UserEntity({
|
||||
required this.id,
|
||||
required this.mobile,
|
||||
this.firstName,
|
||||
this.avatar,
|
||||
});
|
||||
|
||||
bool get hasName => firstName != null && firstName!.trim().isNotEmpty;
|
||||
}
|
||||
Reference in New Issue
Block a user