UserPreferencesService class
- Mixed-in types
-
- LoggingMixin
Constructors
- UserPreferencesService(String keyPrefix, [ ])
Properties
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyPrefix → String
-
final
-
knownKeys
→ Future<
Set< UserPrefKey> > -
no setter
- log → Logger
-
no setterinherited
- loggerName → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
no setter
Methods
-
findByPrefix<
T> (String prefix) → Future< Map< UserPrefKey, T?> > -
get<
T> (UserPrefKey key) → Future< T?> -
getBool(
UserPrefKey key) → Future< bool> -
getDateTime(
UserPrefKey key) → Future< DateTime?> -
getString(
UserPrefKey key) → Future< String?> -
getStrings(
UserPrefKey key) → Future< List< String> ?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prefName(
UserPrefKey key) → String -
registerPrefix(
String prefix) → void -
remove(
UserPrefKey key) → Future -
resetPreferences(
) → Future -
set(
UserPrefKey key, String? value) → Future< String?> -
setDateTime(
UserPrefKey key, DateTime dateTime) → Future< DateTime> -
setFalse(
UserPrefKey key) → Future -
setStrings(
UserPrefKey key, Iterable< String> value) → Future -
setTimestamp(
UserPrefKey key) → Future< DateTime> -
setTrue(
UserPrefKey key) → Future -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited