BotStorageWrapper<T> class
A wrapper concrete class for BotStorage interface
- Inheritance
-
- Object
- BotStorage<
T> - BotStorageWrapper
- Mixed in types
Constructors
-
BotStorageWrapper({required ReadCallback<
T> read, required WriteCallback<T> write, required DeleteCallback<T> delete}) -
Provide
read
,write
anddelete
callbacks instead of implementing BotStorage interface directly
Properties
Methods
-
addError(
Object error, [StackTrace? stackTrace]) → void -
Sends or enqueues an error event.
inherited
-
close(
) → void -
Close the auth stream controller.
inherited
-
delete(
) → FutureOr< void> -
Deletes the stored data asynchronously.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → T? -
Returns the stored data.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
T? value) → FutureOr< void> -
Saves the provided
value
asynchronously.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited