SharedPreferencesWindows class Null safety

The Windows implementation of SharedPreferencesStorePlatform.

This class implements the package:shared_preferences functionality for Windows.

Inheritance

Constructors

SharedPreferencesWindows()

Properties

fs FileSystem
File system used to store to disk. Exposed for testing only.
@visibleForTesting, read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isMock bool
Only mock implementations should set this to true. [...]
@visibleForTesting, read-only, inherited
pathProvider PathProviderWindows
The path_provider_windows instance used to find the support directory.
@visibleForTesting, read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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
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

Static Properties

instance SharedPreferencesWindows
The default instance of SharedPreferencesWindows to use.
read / write, override