UserDatasource class abstract

Datasource for fetching user data.

Inheritance

Constructors

UserDatasource()

Properties

errorLevel → Level
The level to log error messages at.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
level → Level
The level to log messages at.
no setterinherited
name → String
The name of the datasource.
no setteroverride
namespace → String
The namespace to log messages under. e.g. 'Service.Auth'
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteUser(String token, {String? id}) → Future<void>
Deletes a user.
dispose() → void
Disposes controllers, streams, etc.
inherited
getUser(String token, {String? id}) → Future<User>
Fetches the data for a given user.
getUsers(String token, {String? vintage}) → Future<List<User>>
Fetches all users.
log(Object message, [Object? error, StackTrace? stackTrace]) → void
Logs a message with an optional error and stack trace.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerUser(String token, {String? lang, String? theme, bool? ekEnabled}) → Future<User>
Registers a new user and returns the registered user confirmed by the server.
toString() → String
A string representation of this object.
inherited
updateUser(String token, User user) → Future<User>
Updates the data for a given user and returns the updated user confirmed by the server.

Operators

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