modEventCommentOrNull property

ModEventComment? get modEventCommentOrNull

Returns ModEventComment if this data is ModEventComment, otherwise null.

Implementation

ModEventComment? get modEventCommentOrNull =>
    isModEventComment ? modEventComment : null;