DoubleListAdapter class
Adapter for lists of doubles.
Stores double lists as base64-encoded binary data, with each double represented as an 8-byte IEEE 754 double-precision floating-point number.
- Inheritance
-
- Object
- PrfAdapter<
List< double> > - PrfEncodedAdapter<
List< double> , String> - BinaryListAdapter<
double> - DoubleListAdapter
Constructors
- DoubleListAdapter.new()
-
const
Properties
Methods
-
decode(
String? base64String) → List< double> ? -
Decodes a Base64-encoded String into a list of elements of type
T
.inherited -
encode(
List< double> values) → String -
Encodes a list of elements of type
T
into a Base64-encoded String.inherited -
getter(
SharedPreferencesAsync prefs, String key) → Future< List< double> ?> -
Retrieves a value of type
T
from SharedPreferences.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
ByteData data, int offset) → double -
Reads an element of type
T
from the given ByteData starting at the specifiedoffset
.override -
setter(
SharedPreferencesAsync prefs, String key, List< double> value) → Future<void> -
Stores a value of type
T
in SharedPreferences.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
write(
ByteData data, int offset, double value) → void -
Writes an element of type
T
to the given ByteData starting at the specifiedoffset
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited