listAll property

Future<Iterable<FileSystemEntity>> get listAll

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:

Implementation

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