PrefsStorage class abstract

An abstract storage that reads and writes named values of certain types asynchronously.

Implementers

Constructors

PrefsStorage()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBool(String key) Future<bool?>
Reads named value from the storage. Returns the read value or null if value does not exist.
getDateTime(String key) Future<DateTime?>
Reads named DateTime from to the storage. Returns the read value or null if value does not exist.
getDouble(String key) Future<double?>
Reads named value from the storage. Returns the read value or null if value does not exist.
getInt(String key) Future<int?>
Reads named value from the storage. Returns the read value or null if value does not exist.
getKeys(String key) Future<Set<String>>
getString(String key) Future<String?>
Reads named value from the storage. Returns the read value or null if value does not exist.
getStringList(String key) Future<List<String>?>
Reads named value from the storage. Returns the read value or null if value does not exist.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBool(String key, bool? value) Future<void>
Writes named value to the storage.
setDateTime(String key, DateTime? value) Future<void>
Writes named DateTime value to the storage.
setDouble(String key, double? value) Future<void>
Writes named value to the storage.
setInt(String key, int? value) Future<void>
Writes named value to the storage.
setString(String key, String? value) Future<void>
Writes named value to the storage.
setStringList(String key, List<String>? value) Future<void>
Writes named value to the storage.
toString() String
A string representation of this object.
inherited

Operators

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