FakeSharedPreferencesStore class
An underlying platform interface for shared preferences that uses an in-memory database seeded with the given data. It also contains a log of all method calls made to the platform.
- Inheritance
-
- Object
- PlatformInterface
- SharedPreferencesStorePlatform
- FakeSharedPreferencesStore
- Annotations
Constructors
Properties
- backend → InMemorySharedPreferencesStore
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMock → bool
-
Only mock implementations should set this to true.
no setterinherited
-
log
→ List<
MethodCall> -
Log of all method calls made to the underlying platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< bool> -
Removes all keys and values in the store where the key starts with 'flutter.'.
override
-
clearWithParameters(
ClearParameters parameters) → Future< bool> -
Removes all keys and values in the store that match options.
inherited
-
clearWithPrefix(
String prefix) → Future< bool> -
Removes all keys and values in the store with given
prefix.inherited -
getAll(
) → Future< Map< String, Object> > -
Returns all key/value pairs persisted in this store where the key starts with 'flutter.'.
override
-
getAllWithParameters(
GetAllParameters parameters) → Future< Map< String, Object> > -
Returns all key/value pairs persisting in this store that match options.
inherited
-
getAllWithPrefix(
String prefix) → Future< Map< String, Object> > -
Returns all key/value pairs persisting in this store that have given
prefix.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → Future< bool> -
Removes the value associated with the
key.override -
setValue(
String valueType, String key, Object value) → Future< bool> -
Stores the
valueassociated with thekey.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited