listAllRecursiveSync property
Returns a list of all file system entities within the current directory and its subdirectories, recursively. This method performs a synchronous operation to retrieve the list of entities.
Example usage:
var entities = directory.listAllRecursiveSync;
for (var entity in entities) {
print(entity.path);
}
Returns: A list of FileSystemEntity objects representing the files and directories found within the current directory and its subdirectories.
Implementation
List<FileSystemEntity> get listAllRecursiveSync {
if (!existsSync()) return <FileSystemEntity>[];
return listSync(recursive: true);
}