FindRule extension
Extends List<Rule>
with methods used to find rule that pertain to a
certain path.
Methods
-
findApplicable(
{required String path}) → List< Rule> -
Available on List<
Taking aRule> , provided by the FindRule extensionpath
, returns theRule
s that pertain to it. -
findMostApplicable(
{required String path, PrecedenceStrategy comparisonMethod = PrecedenceStrategy.defaultStrategy}) → Rule? -
Available on List<
Taking aRule> , provided by the FindRule extensionpath
, gets theRule
s that pertain to it, and returns theRule
that has precedence over the other rules.