RefreshQueuer class

The RefreshQueuer implements the command by causing calls to the queue function while action is currently in progress to cause the action to be called again after the current action is finished.

If ran multiple times while action is still running, this will only run it once after the current action is done.

Inheritance

Constructors

RefreshQueuer(Future<void> action())
action is the refresh action done.

Properties

action Future<void> Function()
The action to be done.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isRefreshing bool
Whether an action is currently being performed right now.
getter/setter pair
performRefreshAfter bool
Whether another action should be called after the current one finishes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queue() Future<void>
Queues up the action to be
override
refresh() Future<void>
Calls the action. If it is currently running, will queue the action to run again when it's done.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited