search method

Future<Map<String, List<(int, String, Map<int, String>)>>> search(
  1. String rootPath,
  2. RegExp pattern, {
  3. bool ignoreHidden = true,
  4. List<RegExp> excluded = const [],
  5. List<RegExp> allowed = const [],
})

Search through all the files for a RegExp pattern.

Implementation

Future<
    Map<
        String,
        List<
            (
              int matchLine,
              String lineContent,
              Map<int, String> matchPositions
            )>>> search(String rootPath, RegExp pattern,
        {bool ignoreHidden = true,
        List<RegExp> excluded = const [],
        List<RegExp> allowed = const []}) async =>
    await searchFilesContent(rootPath.replaceSeparator(), pattern,
        ignoreHidden: ignoreHidden, excluded: excluded, allowed: allowed);