BotTokenStorage<T extends AuthToken> class
abstract
A token storage that extends BotStorage
to store and retrieve tokens.
- Mixed in types
Constructors
Properties
Methods
-
addError(
Object error, [StackTrace? stackTrace]) → void -
Sends or enqueues an error event.
inherited
-
close(
) → void -
Close the auth stream controller.
inherited
-
delete(
[String? message]) → FutureOr< void> -
Deletes the stored token asynchronously.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → T? -
Returns the stored data.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
T? value) → void -
Saves the provided
value
asynchronously.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited