addRule method
Adds a rule
.
Implementation
void addRule(String key, Matcher rule) {
if (!rules.containsKey(key)) {
rules[key] = [rule];
return;
}
if (rules[key] == null) {
rules[key] = List.empty(growable: true);
}
rules[key]?.add(rule);
}