InMemoryQueueStorage class
An in-memory QueueStorage that does not persist across restarts. Useful for tests, or apps that explicitly want a session-only queue.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
Removes all persisted tasks.
override
-
loadAll(
) → Future< List< QueuedRequest> > -
Loads every persisted task, in no particular order — OfflineQueue
re-sorts by priority/creation time itself.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveAll(
List< QueuedRequest> tasks) → Future<void> -
Persists the full current set of tasks, replacing whatever was
stored before.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited