CountdownController class

Controller for CountDownTimer

Constructors

CountdownController({bool autoStart = false})
Constructor

Properties

autoStart bool
Whether or not the timer should automatically begin.
final
hashCode int
The hash code for this object.
no setterinherited
isCompleted bool?
Checks if the timer is running and enables you to take actions according to that. if the timer is still active,
getter/setter pair
onPause VoidCallback?
Called when pausing the timer.
getter/setter pair
onRestart VoidCallback?
Called when restarting the timer.
getter/setter pair
onResume VoidCallback?
Called when resuming the timer.
getter/setter pair
onSkipNext VoidCallback?
Called when skipping to the next interval.
getter/setter pair
onSkipPrevious VoidCallback?
Called when skipping to the previous interval.
getter/setter pair
onStart VoidCallback?
Called when the timer starts.
getter/setter pair
onStop VoidCallback?
Called when the timer stops.
getter/setter pair
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
pause() → dynamic
Set timer pause.
restart() → dynamic
Restart timer, starts things fresh.
resume() → dynamic
Resume from pause.
setOnPause(VoidCallback onPause) → dynamic
Set onPause callback.
setOnRestart(VoidCallback onRestart) → dynamic
set onRestart callback.
setOnResume(VoidCallback onResume) → dynamic
Set onResume callback.
setOnSkipNext(VoidCallback onSkipNext) → dynamic
Set onSkipNext callback.
setOnSkipPrevious(VoidCallback onSkipPrevious) → dynamic
Set onSkipPrevious callback.
setOnStart(VoidCallback onStart) → dynamic
Set onStart callback.
setOnStop(VoidCallback onStop) → dynamic
Set onStop callback.
skipNext() → dynamic
Skip to the next interval.
skipPrevious() → dynamic
Skip to the previous interval.
start() → dynamic
Run timer
stop() → dynamic
Stop timer
toString() String
A string representation of this object.
inherited

Operators

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