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

hashCode int
The hash code for this object.
no setterinherited
namespace String
The namespace used as a prefix for keys in SharedPreferences.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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