InvitesDatasource class abstract

Data source for managing PlanInvites.

Inheritance
Implementers

Constructors

InvitesDatasource()

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

acceptInvite(String token, int id) Future<void>
Accepts the invite with the given id.
declineInvite(String token, int id) Future<void>
Declines the invite with the given id.
dispose() → void
Disposes controllers, streams, etc.
inherited
getInvites(String token) Future<List<PlanInvite>>
Fetches all invites for the user associated with the given token.
inviteUser(String token, int userId) Future<PlanInvite>
Invites the user with the given userId to the plan of the user associated with the given token.
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
toString() String
A string representation of this object.
inherited

Operators

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