listFilesByExtensions static method
Implementation
static List<String> listFilesByExtensions(String directoryPath, List<String> extensions) {
final directory = Directory(directoryPath);
if (!directory.existsSync()) {
throw FileSystemException('Directory does not exist', directoryPath);
}
return _getFilesRecursively(directory, extensions);
}