StdUserDataSource class

Standard implementation of UserDataSource.

Inheritance

Constructors

StdUserDataSource(ApiService apiService, UserToken userToken)
Standard implementation of UserDataSource.

Properties

apiService → ApiService
The service to use for API calls.
final
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
userToken → UserToken
The token to use for authentication.
final

Methods

deleteUser(User user) → Future<void>
Deletes the user from the server.
override
fetchAllUsers() → Future<List<User>>
Fetches all users.
override
fetchCurrentUser() → Future<User>
Fetches the current user.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateUser(User user) → Future<User>
Sends the user to the server and returns the updated User from the server.
override

Operators

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