searchText abstract method

Future<List<TextMatch>> searchText(
  1. String pattern, {
  2. String? glob,
  3. bool ignoreCase = false,
  4. int context = 0,
  5. int? limit,
})

Searches file contents for pattern (a regular expression). glob limits which files are searched; context lines of surrounding text are attached.

Implementation

Future<List<TextMatch>> searchText(
  String pattern, {
  String? glob,
  bool ignoreCase = false,
  int context = 0,
  int? limit,
});