DateTimeAdapter class
Adapter for DateTime objects.
Stores DateTime as base64-encoded binary representation of microseconds since epoch.
- Inheritance
-
- Object
- PrfAdapter<
DateTime> - PrfEncodedAdapter<
DateTime, String> - DateTimeAdapter
Constructors
- DateTimeAdapter.new()
- Creates a new DateTime adapter.
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? base64) → DateTime? -
Decodes a value of storage type
TStore
back to typeT
.override -
encode(
DateTime dateTime) → String -
Encodes a value of type
T
to the storage typeTStore
.override -
getter(
SharedPreferencesAsync prefs, String key) → Future< 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, 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