operator | method
Returns a matcher that matches any character matched by either this
matcher or other
.
Implementation
CharMatcher operator |(CharMatcher other) => switch (other) {
AnyCharMatcher() => other,
NoneCharMatcher() => this,
DisjunctiveCharMatcher(matchers: final matchers) =>
DisjunctiveCharMatcher([this, ...matchers]),
_ => DisjunctiveCharMatcher([this, other])
};