User class

Constructors

User(AppHttpClient _client)

Properties

email String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
password String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
getter/setter pair

Methods

auth() Future<bool>
fetchUser() Future<User>
fromJson(Map map) User
logout() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register() Future<User>
setEmail(String email) User
setId(String id) User
setPassword(String password) User
setToken(String token) User
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

isLoggedIn() Future<bool>