timestamp property

DateTime? timestamp

The timestamp of the block this transaction was mined in. If the block has not been mined, this is null.

Implementation

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