SharedPreferencesAsyncLinux class base

The Linux implementation of SharedPreferencesAsyncPlatform.

This class implements the package:shared_preferences functionality for Linux.

Inheritance
  • Object
  • SharedPreferencesAsyncPlatform
  • SharedPreferencesAsyncLinux

Properties

fs ↔ FileSystem
File system used to store to disk. Exposed for testing only.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pathProvider ↔ PathProviderLinux
The path_provider_linux instance used to find the support directory.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear(ClearPreferencesParameters parameters, SharedPreferencesOptions options) Future<void>
Removes all keys and values in the store that match the given parameters.
override
getBool(String key, SharedPreferencesOptions options) Future<bool?>
Retrieves the bool value associated with the key, if any.
override
getDouble(String key, SharedPreferencesOptions options) Future<double?>
Retrieves the double value associated with the key, if any.
override
getInt(String key, SharedPreferencesOptions options) Future<int?>
Retrieves the int value associated with the key, if any.
override
getKeys(GetPreferencesParameters parameters, SharedPreferencesOptions options) Future<Set<String>>
Returns all keys persisting in this store that match the given parameters.
override
getPreferences(GetPreferencesParameters parameters, SharedPreferencesOptions options) Future<Map<String, Object>>
Returns all key/value pairs persisting in this store that match the given parameters.
override
getString(String key, SharedPreferencesOptions options) Future<String?>
Retrieves the String value associated with the key, if any.
override
getStringList(String key, SharedPreferencesOptions options) Future<List<String>?>
Retrieves the List
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBool(String key, bool value, SharedPreferencesOptions options) Future<void>
Stores the bool value associated with the key.
override
setDouble(String key, double value, SharedPreferencesOptions options) Future<void>
Stores the double value associated with the key.
override
setInt(String key, int value, SharedPreferencesOptions options) Future<void>
Stores the int value associated with the key.
override
setString(String key, String value, SharedPreferencesOptions options) Future<void>
Stores the String value associated with the key.
override
setStringList(String key, List<String> value, SharedPreferencesOptions options) Future<void>
Stores the List
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith() → void
Registers the Linux implementation.