listAllRecursive property

Future<Iterable<FileSystemEntity>> get listAllRecursive

Asynchronously lists all files and directories recursively.

This getter returns a Future that completes with an Iterable of FileSystemEntity objects representing all files and directories within the current directory and its subdirectories.

Example usage:

var files = await directory.listAllRecursive;
files.forEach((file) {
  print(file.path);
});

Returns a Future that completes with an Iterable of FileSystemEntity objects.

Implementation

Future<Iterable<FileSystemEntity>> get listAllRecursive async => await list(recursive: true).toList();