listAllSync property
Returns a list of all file system entities in the current directory.
This method lists all files and directories in the current directory without recursing into subdirectories.
Returns: A list of FileSystemEntity objects representing the files and directories in the current directory.
Implementation
List<FileSystemEntity> get listAllSync {
if (!existsSync()) return <FileSystemEntity>[];
return listSync(recursive: false);
}