DateTimeListAdapter class

Adapter for lists of DateTime objects.

Stores each DateTime as a base64-encoded string, and the list as a JSON array of strings.

Inheritance

Constructors

DateTimeListAdapter.new()
Creates a new DateTime list 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

decode(String? jsonString) List<DateTime>?
Decodes a value of storage type TStore back to type T.
override
encode(List<DateTime> dateTimes) String
Encodes a value of type T to the storage type TStore.
override
getter(SharedPreferencesAsync prefs, String key) Future<List<DateTime>?>
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<DateTime> 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