flutter_queue_it library
Flutter integration for queue_it.
QueueItWidget listens to a QueueIt queue and rebuilds whenever the queue changes, so the UI can show the queue's items, progress and state. QueueItListener calls back for every event without rebuilding.
This library exports package:queue_it/queue_it.dart, so it's the only
import you need.
Classes
-
QueueIt<
T> - A queue that processes its items with itemHandler, up to parallel at a time, in the order they were added.
-
QueueItem<
T> - An item in a queue: its data, its status and when the status changed.
-
QueueItListener<
T> - A widget that calls listener for every event of a QueueIt, without rebuilding.
-
QueueItWidget<
T> - A widget that rebuilds whenever a QueueIt changes.
-
QueueSnapshot<
T> -
The state of a queue when an event happened, sent on the queue's
onUpdatestream.
Enums
- QueueEvent
-
What happened to a queue, as told by each snapshot on its
onUpdatestream. - QueueItemStatus
- Where a queue item is in its life.
Extensions
-
QueueItemsExtension
on Iterable<
QueueItem< T> > -
Filters and progress for a collection of queue items, such as
queue.items()or a snapshot'sitems.
Typedefs
-
ItemHandler<
T> = FutureOr< void> Function(QueueItem<T> item) - Processes one item of a queue.