StringAdapter class

Adapter for string values.

Uses the native string support in SharedPreferences.

Inheritance

Constructors

StringAdapter.new()
Creates a new string adapter.
const

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

getter(SharedPreferencesAsync prefs, String key) Future<String?>
Retrieves a value of type T from SharedPreferences.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setter(SharedPreferencesAsync prefs, String key, String value) Future<void>
Stores a value of type T in SharedPreferences.
override
toString() String
A string representation of this object.
inherited

Operators

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