Last updated:
0 purchases
queue future callback
This package is useful when you want to add multiple future callbacks sequentially
A specific use case: you want show popup sequentially to avoid multiple dialog, overlay banner show it at the same time.
Usage #
QueueFutureCallback queueFutureCallBack = QueueFutureCallback();
final popUp1 = Future.delay(Duration(second: 1));
final popUp2 = Future.delay(Duration(second: 1));
final popUp3 = Future.delay(Duration(second: 1));
queueFutureCallBack.addFutureIntoQueue(() => popUp1);
queueFutureCallBack.addFutureIntoQueue(() => popUp2);
queueFutureCallBack.addFutureIntoQueue(() => popUp2);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.