Dir constructor
Creates a Dir instance.
The path parameter specifies the path to the directory.
The listDirectory parameter specifies whether to list the contents of the directory.
The fileSystem parameter specifies the file system to use.
Implementation
Dir(this.path, {this.listDirectory = false, file.FileSystem? fileSystem})
: fileSystem = fileSystem ?? const local.LocalFileSystem();