modEventLabelOrNull property

ModEventLabel? get modEventLabelOrNull

Returns ModEventLabel if this data is ModEventLabel, otherwise null.

Implementation

ModEventLabel? get modEventLabelOrNull =>
    isModEventLabel ? modEventLabel : null;