listFilesSync property
Returns an iterable of files from the list of all entities in the directory.
This getter filters the list of all entities and returns only those that are of type File.
Example:
Iterable<File> files = directory.listFilesSync;
Implementation
Iterable<File> get listFilesSync => listAllSync.whereType<File>();