Does it contain other
other
bool contains(Pattern other, [int startIndex = 0]) => toString().contains(other);