cost property

  1. @override
RuleCost get cost
override

The estimated execution cost of this rule.

Override to specify the cost level for your rule:

Rules are sorted by cost before execution, so fast rules run first. Default: RuleCost.medium

Implementation

@override
RuleCost get cost => RuleCost.medium;