postViewOrNull property

PostView? get postViewOrNull

Returns PostView if this data is PostView, otherwise null.

Implementation

PostView? get postViewOrNull => isPostView ? postView : null;