DurationListAdapter64 class

Adapter for lists of Duration objects.

Stores each Duration as a 4-byte big-endian integer representing microseconds.

Inheritance

Constructors

DurationListAdapter64.new()
const

Properties

byteSize int
The size in bytes of each element in the list.
finalinherited
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(String? base64String) List<Duration>?
Decodes a Base64-encoded String into a list of elements of type T.
inherited
encode(List<Duration> values) String
Encodes a list of elements of type T into a Base64-encoded String.
inherited
getter(SharedPreferencesAsync prefs, String key) Future<List<Duration>?>
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) Duration
Reads an element of type T from the given ByteData starting at the specified offset.
override
setter(SharedPreferencesAsync prefs, String key, List<Duration> 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, Duration value) → void
Writes an element of type T to the given ByteData starting at the specified offset.
override

Operators

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