infoOrNull property

Info? get infoOrNull

Returns Info if this data is Info, otherwise null.

Implementation

Info? get infoOrNull => isInfo ? info : null;