ConcreteNamespacedPrefs class
A concrete implementation of NamespacedPreferences.
This class allows for namespaced access to SharedPreferences.
namespace is the prefix used for keys in SharedPreferences.
Constructors
- ConcreteNamespacedPrefs(String namespace)
-
Creates a ConcreteNamespacedPrefs instance with the given
namespace.
Properties
Methods
-
clearNamespace(
) → Future< void> -
Clears all values in SharedPreferences that have keys starting with the namespace.
inherited
-
getValue(
String key, {dynamic defaultValue}) → Future -
Retrieves a value from SharedPreferences with a namespaced key.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setValue(
String key, dynamic value) → Future< void> -
Adds a string value to SharedPreferences with a namespaced key.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited