BytesListAdapter class
Adapter for lists of binary data (Uint8List
).
Each element is stored as a base64-encoded string,
and the list is stored using SharedPreferences' native List<String>
type.
- Inheritance
-
- Object
- PrfAdapter<
List< Uint8List> > - PrfEncodedAdapter<
List< Uint8List> , List<String> > - BytesListAdapter
Constructors
- BytesListAdapter.new()
-
Creates a new adapter for lists of binary data.
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
-
decode(
List< String> ? base64List) → List<Uint8List> ? -
Decodes a value of storage type
TStore
back to typeT
.override -
encode(
List< Uint8List> values) → List<String> -
Encodes a value of type
T
to the storage typeTStore
.override -
getter(
SharedPreferencesAsync prefs, String key) → Future< List< Uint8List> ?> -
Retrieves a value of type
T
from SharedPreferences.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setter(
SharedPreferencesAsync prefs, String key, List< Uint8List> value) → Future<void> -
Stores a value of type
T
in SharedPreferences.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited