TimerStorage class abstract
An abstract interface for persisting timer data.
This contract allows the package to remain storage-agnostic.
You can implement this class to store data in shared_preferences,
a local database, or even a remote server.
- Implementers
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
-
clear(
) → Future< void> - Removes the persisted data from storage.
-
loadSeconds(
) → Future< int?> - Retrieves the persisted number of seconds from storage.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveSeconds(
int seconds) → Future< void> -
Persists the given
secondsto local storage. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited