StopWhen typedef

StopWhen = Future<bool> Function(File file, String line, int totalMatches)

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,
);