User class

Constructors

User({required String uuid, required String username, required String email, required bool emailVerified, String? avatarStorageUUID, required UserRole role})
const
User.fromJson(String source)
factory
User.fromMap(Map<String, dynamic> map)
factory

Properties

avatarStorageUUID String?
final
email String
final
emailVerified bool
final
hashCode int
The hash code for this object.
no setteroverride
role UserRole
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
final
uuid String
final

Methods

avatarUrl() String?
Get the user's avatar url. if the user has no avatar, it will return null.
copyWith({String? uuid, String? username, String? email, bool? emailVerified, String? avatarStorageUUID, UserRole? role}) User
getToken(String password) Future<String>
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

getByUUID(String uuid) Future<User>