labelsOrNull property

Labels? get labelsOrNull

Returns Labels if this data is Labels, otherwise null.

Implementation

Labels? get labelsOrNull => isLabels ? labels : null;