LocalStorageFile class final
Web build placeholder for a local file.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lengthSync → int
-
Current logical length in bytes.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
appendSync(
Uint8List bytes) → void -
Appends
bytesat the end of the file.override -
closeSync(
) → void -
Releases the file handle. Subsequent operations throw StateError.
override
-
flushSync(
) → void -
Makes previously appended bytes durable.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAllSync(
) → Uint8List -
Reads the whole file as one buffer.
override
-
readAtSync(
int offset, int length) → Uint8List -
Reads exactly
lengthbytes starting atoffset.override -
toString(
) → String -
A string representation of this object.
inherited
-
truncateSync(
int length) → void -
Cuts the file to
lengthbytes. Must not extend.override -
writeAllSync(
Uint8List bytes) → void -
Replaces the file contents with
bytes.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited