LoopManager class

循环任务管理器,实现类似 JavaScript 中递归 setTimeout 的效果

Constructors

LoopManager({required Function task, required Duration interval})

Properties

hashCode int
The hash code for this object.
no setterinherited
interval Duration
final
isRunning bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
task Function
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() → void
stop() → void
toString() String
A string representation of this object.
inherited

Operators

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