FileEntry class final

One entry in a directory listing, as FileBrowser and FilePicker show it.

Constructors

FileEntry({required String path, required String name, required FileEntryType type, int? sizeBytes, DateTime? modified, bool hidden = false})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hidden → bool
Whether the entry is hidden by convention, such as a dot-file.
final
isDirectory → bool
no setter
isFile → bool
no setter
modified → DateTime?
Last modification time, when the source knows it.
final
name → String
Last segment of path, as displayed.
final
path → String
Absolute path, in the source's own path syntax.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeBytes → int?
Size of a file in bytes, when the source knows it.
final
type → FileEntryType
Whether this is a directory, a file, or something else.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited