contentLabelPrefOrNull property

ContentLabelPref? get contentLabelPrefOrNull

Returns ContentLabelPref if this data is ContentLabelPref, otherwise null.

Implementation

ContentLabelPref? get contentLabelPrefOrNull =>
    isContentLabelPref ? contentLabelPref : null;