TimerFController class

Constructors

TimerFController({DateTime? startTime, Duration? duration, String timeFormate = "HH:MM:SS:ms", Duration? listeningDelay, bool isCountdown = true, void statusListener(AppTimerStatus)?, void progress0to1Listener(double)?, void millisecondsListener(int)?, void timeListener(String)?})

Properties

controller StreamController<String>
--Access by controller--
no setter
defaultDelay Duration
getter/setter pair
duration Duration?
duration it's duration of your timer
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCountdown bool
getter/setter pair
listeningDelay Duration?
The listeningDelay parameter specifies the duration of the gap between each continus listener's progress0to1Listener, millisecondsListener and timeListener.
getter/setter pair
millisecondsListener ↔ void Function(int)?
Timer listener value in milliseconds
getter/setter pair
progress0to1Listener ↔ void Function(double)?
Timer progress 0 to 1 listener
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime?
The startTime parameter allows you to set a specific time to start the timer. By default, it is set to the current time DateTime.now().
getter/setter pair
statusListener ↔ void Function(AppTimerStatus)?
Timer status listener
getter/setter pair
timeFormate String
The timeFormate is a string type that specifies the format for displaying time, and it is associated with a listener called timeListener.
getter/setter pair
timeListener ↔ void Function(String)?
Time listener of value as string with formate
getter/setter pair
timer Timer
getter/setter pair

Methods

clear() → void
--this function clear the current runing timer
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
--pause Pauses the visible progression of the timer while maintaining its internal state. --The timer continues to track its remaining duration internally, even while paused.
reset() → void
--this function reset the timer
resume() → void
Resumes the timer from a paused state and restarts its visible progression. The timer continues from where it was paused, ensuring seamless continuation of its countdown or progression.
toString() String
A string representation of this object.
inherited

Operators

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