Returns true if the latest rendered view contains a line matching the regular expression pattern.
true
pattern
bool textMatching(Pattern pattern) => pattern.allMatches(Layout.stripAnsi(_tester._lastView)).isNotEmpty;