SettingsService<T extends AbstractModel> class

Constructors

SettingsService.new({required T fromMap(Map<String, dynamic>), required T defaultSettings(), String settingsKey = 'app_settings'})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settingsKey String
final

Methods

getSettings() Future<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveSettings(T settings) Future<void>
setPrefsForTesting(SharedPreferences preferences) → void
toString() String
A string representation of this object.
inherited
updateSetting<V>(V value, T updater(T, V)) Future<T>

Operators

operator ==(Object other) bool
The equality operator.
inherited