selfLabelsOrNull property

SelfLabels? get selfLabelsOrNull

Returns SelfLabels if this data is SelfLabels, otherwise null.

Implementation

SelfLabels? get selfLabelsOrNull => isSelfLabels ? selfLabels : null;