CountdownTimer class

Constructors

CountdownTimer()

Properties

diffTime int
剩余时间差
no setter
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
start(int startTime, int endTime, CountdownCallback callback, {int step = 1000}) → void
开始倒计时 startTime 开始时间(单位毫秒) endTime 结束时间(单位毫秒) callback 回调 step 计时步长默认1秒回调一次
startCountdown(int restOfTime, CountdownCallback? callback, {int step = 1000}) → void
开始倒计时 restOfTime 剩余时间(单位毫秒) callback 回调(null时不做计时处理) step 计时步长默认1秒回调一次
stop() → void
停止倒计时
toString() String
A string representation of this object.
inherited

Operators

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