mentionRuleOrNull property

MentionRule? get mentionRuleOrNull

Returns MentionRule if this data is MentionRule, otherwise null.

Implementation

MentionRule? get mentionRuleOrNull => isMentionRule ? mentionRule : null;