search method
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);