TimerUtil class
TimerUtil.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mInterval ↔ int
-
Timer interval (unit: milliseconds, default: 1000 milliseconds).
getter/setter pair
- mTotalTime ↔ int
-
Countdown total time (unit: milliseconds).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → void - Cancel the timer.
-
isActive(
) → bool - Check if the timer is active.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setInterval(
int interval) → void - Set Timer interval (unit: milliseconds).
-
setOnTimerTickCallback(
OnTimerTickCallback callback) → void - Set the timer callback.
-
setTotalTime(
int totalTime) → void - Set countdown total time (unit: milliseconds).
-
startCountDown(
) → void - Start the countdown Timer.
-
startTimer(
) → void - Start the Timer.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTotalTime(
int totalTime) → void - Update countdown total time.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited