timestamp property

DateTime? get timestamp

Getter for timestamp as DateTime (for external access)

Implementation

DateTime? get timestamp => _timestamp != null
    ? DateTime.fromMillisecondsSinceEpoch(_timestamp! * 1000)
    : null;