StopWhen typedef
Evaluated after MatcherBuilder.matcher and MatcherBuilder.builder are executed.
Control when the current MatcherBuilder should stop matching and inserting lines.
Implementation
typedef StopWhen = Future<bool> Function(
/// The current file evaluated.
File file,
/// The current line evaluated.
String line,
/// Count of matches made
int totalMatches,
);