FindRule extension

Extends List<Rule> with methods used to find rule that pertain to a certain path.

on

Methods

findApplicable({required String path}) List<Rule>

Available on List<Rule>, provided by the FindRule extension

Taking a path, returns the Rules that pertain to it.
findMostApplicable({required String path, PrecedenceStrategy comparisonMethod = PrecedenceStrategy.defaultStrategy}) Rule?

Available on List<Rule>, provided by the FindRule extension

Taking a path, gets the Rules that pertain to it, and returns the Rule that has precedence over the other rules.