SettingsSharedPref class

SettingsSharedPref to presist data in the app locally A utility class for managing and persisting settings data locally using shared_preferences.

Constructors

SettingsSharedPref()

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

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.
inherited

Static Methods

clearLocale() Future<void>
getAccentTheme() String?
getLocale() Future<Locale>
getTheme() String?
getters
getTitleFont() double?
init() Future
Initializes the SharedPreferences instance for local data storage.
removeAccentTheme() Future<void>
removeTheme() Future<void>
removeTitleFont() Future<void>
setAccentTheme(String accentTheme) Future<void>
setLocale(Locale locale) Future<void>
setTheme(String theme) Future<void>
setTitleFont(double titleFont) Future<void>