dateTime property

DateTime get dateTime

Equivalent to mongo shell's "getTimestamp".

Implementation

DateTime get dateTime => DateTime.fromMillisecondsSinceEpoch(
    int.parse(_id.hexString.substring(0, 8), radix: 16) * 1000);