timestamp property

DateTime? get timestamp

timestampMs as a UTC DateTime, if present.

Implementation

DateTime? get timestamp {
  final ms = timestampMs;
  if (ms == null) {
    return null;
  }
  return DateTime.fromMillisecondsSinceEpoch(ms, isUtc: true);
}