EasyTimerController class
A controller to manage an EasyTimerCount externally.
Example usage:
final controller = EasyTimerController();
EasyTimerCount(
duration: EasyTime(seconds: 30),
controller: controller,
onTimerStarts: (context) {},
onTimerEnds: (context) {},
);
// Control the timer
controller.stop();
controller.restart();
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Disposes the controller and cancels the timer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets the timer without running it.
-
restart(
) → void - Restarts the timer from the beginning.
-
resume(
) → void - Resumes the timer after pausing.
-
stop(
) → void - Stops the timer completely.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited