TimerUtils class

倒计时timer工具类

Constructors

TimerUtils.countDown(int totalTime, OnTimerCallback callback, {int interval = 1})
倒计时构造方法
TimerUtils.timer(OnTimerCallback callback, {int interval = 1})
定时器构造方法

Properties

callback OnTimerCallback
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interval int
Timer间隔 单位:秒,默认1秒.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalTime int
倒计时总时间 单位:秒
getter/setter pair

Methods

cancel() → void
取消计时器.
isActive() bool
判断Timer是否启动.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startCountDown() → void
启动倒计时Timer.
startTimer() → void
启动定时Timer.
toString() String
A string representation of this object.
inherited
updateTotalTime(int totalTime) → void
重设倒计时总时间.

Operators

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