CountdownController class

Controller for Count down

Constructors

CountdownController({bool autoStart = false})
Constructor

Properties

autoStart bool
if timer auto start.
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 called pause method
getter/setter pair
onRestart VoidCallback?
Called when restarting the timer
getter/setter pair
onResume VoidCallback?
Called when called resume method
getter/setter pair
onStart VoidCallback?
Called when timer is staring
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 in pause
restart() → dynamic
Restart timer from cold
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
setOnStart(VoidCallback onStart) → dynamic
Set onStart callback
start() → dynamic
Run timer
toString() String
A string representation of this object.
inherited

Operators

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