encode method

  1. @override
int encode(
  1. DateTime? value
)

Converts the value of type T into the database-compatible type S

Implementation

@override
int encode(DateTime? value) {
  return value != null ? value.millisecondsSinceEpoch : 0;
}