FileSystemSyncAccessHandle class
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void -
Available on FileSystemSyncAccessHandle, provided by the JSFileSystemSyncAccessHandle extension
Closes an open synchronous file handle, disabling any further operations on it and releasing the exclusive lock previously put on the file associated with the file handle. -
flush(
) → void -
Available on FileSystemSyncAccessHandle, provided by the JSFileSystemSyncAccessHandle extension
Persists any changes made to the file associated with the handle via the write method to disk. -
getSize(
) → int -
Available on FileSystemSyncAccessHandle, provided by the JSFileSystemSyncAccessHandle extension
Returns the size of the file associated with the handle in bytes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
Uint8List buffer, {int? offset}) → int -
Available on FileSystemSyncAccessHandle, provided by the JSFileSystemSyncAccessHandle extension
Reads the content of the file associated with the handle into a specifiedbuffer
, optionally starting to read at a givenoffset
. The file cursor is updated when read is called to point to the byte after the last byte read. -
toString(
) → String -
A string representation of this object.
inherited
-
truncate(
int newSize) → void -
Available on FileSystemSyncAccessHandle, provided by the JSFileSystemSyncAccessHandle extension
Resizes the file associated with the handle to a specified number of bytes. -
write(
Uint8List buffer, {int? offset}) → int -
Available on FileSystemSyncAccessHandle, provided by the JSFileSystemSyncAccessHandle extension
Writes the content of a specifiedbuffer
to the file associated with the handle, optionally writing at a givenoffset
from the start of the file. The file cursor is updated when write is called to point to the byte after the last byte written.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited