StdPlanDatasource class

Standard PlanDatasource implementation.

Inheritance

Constructors

StdPlanDatasource(ApiService _apiService)
Standard PlanDatasource implementation.

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 setterinherited
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

chmod(String token, int userId, PlanMemberAccessType accessType) Future<void>
Modifies the access type of the member with the given userId in the plan of the user associated with the given token.
override
dispose() → void
Disposes controllers, streams, etc.
override
getPlan(String token) Future<CalendarPlan>
Fetches the plan for the user associated with the given token.
override
leavePlan(String token) Future<void>
Leaves a shared plan of the user associated with the given token.
override
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
removeMember(String token, int userId) Future<void>
Removes the member with the given userId from the plan of the user associated with the given token.
override
toString() String
A string representation of this object.
inherited
updatePlan(String token, CalendarPlan plan) Future<void>
Updates the plan for the user associated with the given token and returns the updated plan confirmed by the server.
override

Operators

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