commitOrNull property

Commit? get commitOrNull

Returns Commit if this data is Commit, otherwise null.

Implementation

Commit? get commitOrNull => isCommit ? commit : null;