readDateTime method

DateTime readDateTime([
  1. int offset = 0
])

Reads a DateTime at offset. It's encoded as a Uint64 of DateTime.millisecondsSinceEpoch.

Implementation

DateTime readDateTime([int offset = 0]) {
  var t = getInt64(offset);
  return DateTime.fromMillisecondsSinceEpoch(t, isUtc: true);
}