TimerUtils class
定时器工具类
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
cancel(
String id) → void - 取消定时器
-
create(
{required Duration interval, bool immediate = false, int? maxCount, bool pauseOnBackground = true, String? id}) → Reactive< int> - 创建定时器
-
pause(
String id) → void - 暂停定时器
-
query(
String id) → Future< TimerInfo?> - 查询定时器信息
-
queryAll(
) → Future< List< TimerInfo> > - 查询所有定时器信息
-
resume(
String id) → void - 恢复定时器