queues property
Constructs a new PersistentQueue or returns a previously cached one.
filename gets instantiated under ApplicationDocumentsDirectory to
store/load the persistent queue.
An optional onFlush handler can be supplied at construction
time, to be called implicitly before each flush() operation emptying
the queue. When onFlush is provided the queue will be emptied as long
as the handler does not return false.
The flushAt and flushTimeout parameters specify trigger conditions
for firing automatic implicit flush() operations.
flushAt establishes a desired target ceiling for locally store items,
with a default of 100. It's also possible to set a flushTimeout
for a time-based flush() trigger, with a default Duration of 5
minutes. Both parameters can only be bypassed by setting very large
values, by design.
Setting maxLength causes the queue to throw exceptions at push time
when the queue internally holds more elements than this hard maximum. By
default it's calculated as 5 times the size of flushAt.
Implementation
static final Map queues = <String, TracomPersistentQueue>{};