listAll property
Returns a Future that completes with an Iterable of FileSystemEntity objects representing the contents of the directory. The listing is not recursive.
Example:
var files = await directory.listAll;
Returns:
- A Future that completes with an Iterable of FileSystemEntity objects.
Implementation
Future<Iterable<FileSystemEntity>> get listAll async => await list(recursive: false).toList();