BotMemoryStorage<T> class
Memory storage implementation for BotStorage
read, write, and delete the value
from memory
- Inheritance
-
- Object
- BotStorage<
T> - BotMemoryStorage
- Mixed in types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initValue → T?
-
To provide init value for the BotMemoryStorage
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T?> -
Notifies about changes to any value updates.
no setterinherited
- value ↔ T?
-
The current value saved in the memory
getter/setter pairoverride-getter
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