Creates a path rule for prefix.
prefix
PathRule(String prefix, {this.exact = false}) : prefix = _normalize(prefix);