TimerStorageManager class
A coordinator class that manages the persistence of timer data.
It utilizes two separate storage instances to track the remaining time and the timestamp of when the app entered the background.
Constructors
- TimerStorageManager()
- Initializes the storage manager with predefined keys for background timestamps and timer values.
Properties
- backGroundTimeStampStorage → SharedPrefsStorage
-
Storage instance for the Unix timestamp recorded when the app is paused.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timerStorage → SharedPrefsStorage
-
Storage instance for the current number of seconds remaining on the timer.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetAll(
) → Future< void> - Clears all persisted data from both the timer and timestamp storage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited