WASIPreview2FilesystemDirectoryEntry class final
One directory entry exposed by WASIPreview2FilesystemDirectory.
Constructors
- WASIPreview2FilesystemDirectoryEntry.directory(String name, {WASIPreview2FilesystemDirectory? directory, WASIPreview2FilesystemMetadataProvider? metadata})
- Creates a directory entry.
-
WASIPreview2FilesystemDirectoryEntry.regularFile(String name, {BigInt? size, List<
int> bytes = const <int>[], bool canMutate = false, WASIPreview2FilesystemFileBytesProvider? readBytes, WASIPreview2FilesystemFileSizeProvider? currentSize, WASIPreview2FilesystemMetadataProvider? metadata, WASIPreview2FilesystemFileWriteCallback? writeBytes, WASIPreview2FilesystemFileSetSizeCallback? setSize, WASIPreview2FilesystemFileSyncCallback? syncData, WASIPreview2FilesystemFileSyncCallback? sync, WASIPreview2FilesystemSetTimesCallback? setTimes}) - Creates a regular-file entry.
- WASIPreview2FilesystemDirectoryEntry.symbolicLink(String name, {required String target, WASIPreview2FilesystemMetadataProvider? metadata})
- Creates a symbolic-link entry.
Properties
- bytes → Uint8List
-
Immutable snapshot of current file contents.
no setter
- canMutate → bool
-
Whether this entry can be opened with mutation flags.
final
- directory → WASIPreview2FilesystemDirectory?
-
Nested directory contents for directory entries.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → WASIPreview2FilesystemDescriptorKind
-
Entry kind.
final
- name → String
-
Entry name relative to the containing directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → BigInt
-
File size for regular files.
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