PrfAdapter<T> class abstract

Abstract adapter for converting between Dart types and SharedPreferences.

Adapters enable type-safe access to SharedPreferences by handling the conversion between a Dart type T and the native types supported by SharedPreferences.

Implementers

Constructors

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

Operators

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