dateStore top-level property

Store<DateTime> dateStore
final

Implementation

final dateStore = Store<DateTime>(
  storeName: 'dates',
  deserialize: (bytes) => DateTime.fromMillisecondsSinceEpoch(
      int.parse(String.fromCharCodes(bytes))),
  serialize: (value) => value.millisecondsSinceEpoch.toString().codeUnits,
);