SettingsService class
A service that stores and retrieves user settings.
By default, this class does not persist user settings. If you'd like to persist the user settings locally, use the shared_preferences package. If you'd like to store settings on a web server, use the http package.
Constructors
- SettingsService(SharedPreferences _prefs)
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
-
cardinalitySelection(
) → Future< CardinalitySelection> -
isNotificationEnabled(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notificationTime(
) → TimeOfDay -
streakEngine(
) → StreakEngine - Loads the Streak Engine
-
themeMode(
) → ThemeMode - Loads the User's preferred ThemeMode from local or remote storage.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCardinalitySelection(
CardinalitySelection selection) → Future< void> -
updateNotificationEnabled(
bool value) → Future< void> -
updateNotificationTime(
TimeOfDay value) → Future< void> -
updateStreakEngine(
StreakEngine streakEngine) → Future< void> - Updates the Streak Engine
-
updateThemeMode(
ThemeMode theme) → Future< void> - Persists the user's preferred ThemeMode to local or remote storage.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited