textMatching method

bool textMatching(
  1. Pattern pattern
)

Returns true if the latest rendered view contains a line matching the regular expression pattern.

Implementation

bool textMatching(Pattern pattern) =>
    pattern.allMatches(Layout.stripAnsi(_tester._lastView)).isNotEmpty;