disableRuleOrNull property
DisableRule?
get
disableRuleOrNull
Returns DisableRule if this data is DisableRule, otherwise null.
Implementation
DisableRule? get disableRuleOrNull => isDisableRule ? disableRule : null;