MethodChannelNativeSharedPreferencesStore class Null safety

Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing a persistent store for simple data.

Data is persisted to disk asynchronously.

Inheritance

Constructors

MethodChannelNativeSharedPreferencesStore()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isMock bool
Only mock implementations should set this to true.
@visibleForTestingread-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

clear() Future<bool>
Removes all keys and values in the store.
override
getAll() Future<Map<String, Object>>
Returns all key/value pairs persisted in this store.
override
getAllFromDictionary(List<String> keys) Future<Map<String, Object>>
Returns all key/value pairs persisted in this store.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 value associated with the key.
override
toString() String
A string representation of this object.
inherited

Operators

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