CountDownController class
Controls (i.e Start, Pause, Resume, Restart) the Countdown Timer.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isPaused
↔ ValueNotifier<
bool> -
getter/setter pair
-
isRestarted
↔ ValueNotifier<
bool> -
getter/setter pair
-
isResumed
↔ ValueNotifier<
bool> -
getter/setter pair
-
isStarted
↔ ValueNotifier<
bool> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getTime(
) → String? - This Method returns the Current Time of Countdown Timer i.e Time Used in terms of Forward Countdown and Time Left in terms of Reverse Countdown
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - This Method Pauses the Countdown Timer
-
reset(
) → void - This Method resets the Countdown Timer
-
restart(
{int? duration}) → void - This Method Restarts the Countdown Timer, Here optional int parameter duration is the updated duration for countdown timer
-
resume(
) → void - This Method Resumes the Countdown Timer
-
start(
) → void - This Method Starts the Countdown Timer
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited