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>
Taking a path, returns the Rules that pertain to it.
findMostApplicable({required String path, PrecedenceStrategy comparisonMethod = PrecedenceStrategy.defaultStrategy}) Rule?
Taking a path, gets the Rules that pertain to it, and returns the Rule that has precedence over the other rules.