followingRuleOrNull property

FollowingRule? get followingRuleOrNull

Returns FollowingRule if this data is FollowingRule, otherwise null.

Implementation

FollowingRule? get followingRuleOrNull =>
    isFollowingRule ? followingRule : null;