PopPopTimer<T extends Object> class
abstract
An optional timer to implement if a stopwatch or countdown timer is required for PopPop implementations.
Constructors
- PopPopTimer({required int seconds, bool loggingEnabled = false})
-
const
Properties
-
countdownTimerStream
→ Stream<
T> -
Stream to listen to that emits time updates.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- loggingEnabled → bool
-
Sets whether debug logging should be enabled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → int
-
Initialises the timer with the given
seconds
value.final
Methods
-
dispose(
) → FutureOr< void> - Close streams and clean up resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseTimer(
) → void - Pauses the active timer Stream.
-
restartTimer(
) → void -
Restarts tje active timer and sets to the given
seconds
value. -
resumeTimer(
) → void - Resumes a paused timer Stream
-
startTimer(
) → void - Starts the timer countdown.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited