BaseUser class

Constructors

BaseUser({String? fristName, String? lastName, required dynamic uid, required String userName, required String emailAddress, String? token, String? imageUrl, String? phoneNumber, UserRoles role = UserRoles.Inactive, UserStatus status = UserStatus.UnAuth})
const
BaseUser.fromJson(String source)
factory
BaseUser.fromMap(Map<String, dynamic> map)
factory

Properties

emailAddress String
final
fristName String?
final
hashCode int
The hash code for this object.
no setteroverride
imageUrl String?
final
isAuth bool
no setter
lastName String?
final
phoneNumber String?
final
role UserRoles
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status UserStatus
final
toAuth BaseUser
no setter
token String?
final
uid → dynamic
final
userName String
final

Methods

copyWith({String? fristName, String? lastName, String? userName, String? emailAddress, String? token, UserRoles? role, UserStatus? status, dynamic uid, String? phoneNumber, String? imageUrl}) BaseUser
makeauthUser(BaseUser user) BaseUser
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

init() BaseUser