TimerState class

Represents the current snapshot of the background timer.

Contains the remaining time and the current playback status of the countdown.

Constructors

TimerState({required int secondsRemaining, bool isRunning = false, bool isPaused = false})
Creates a TimerState with the specified values.

Properties

hashCode → int
The hash code for this object.
no setteroverride
isPaused → bool
Indicates if the timer has been manually paused by the user.
final
isRunning → bool
Indicates if the timer is currently actively ticking.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondsRemaining → int
The number of seconds left in the countdown.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override