CacheSettingsService class
Service for managing cache-related settings with persistent storage.
Properties
- cacheOnlyMode → bool
-
Gets whether offline mode is enabled (defaults to false)
no setter
- cachingEnabled → bool
-
Gets whether caching is enabled (defaults to true).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
initialize(
) → Future< void> - Initialises the service and loads settings from SharedPreferences.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetToDefaults(
) → Future< void> - Resets all cache settings to defaults.
-
setCacheOnlyMode(
bool enabled) → Future< void> - Sets whether offline mode is enabled.
-
setCachingEnabled(
bool enabled) → Future< void> - Sets whether caching is enabled.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → CacheSettingsService
-
Gets the singleton instance of CacheSettingsService.
no setter