FileReaderSync extension type
The FileReaderSync
interface allows to read File or Blob objects
synchronously. This interface is
only available
in workers as it
enables synchronous I/O that could potentially block.
Constructors
- FileReaderSync()
-
factory
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAsArrayBuffer(
Blob blob) → JSArrayBuffer -
The
readAsArrayBuffer()
method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into anArrayBuffer
. This interface is only available in workers as it enables synchronous I/O that could potentially block. -
readAsBinaryString(
Blob blob) → String -
Note: This method is deprecated in favor of FileReaderSync.readAsArrayBuffer.
-
readAsDataURL(
Blob blob) → String -
The
readAsDataURL()
method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string representing a data URL. This interface is only available in workers as it enables synchronous I/O that could potentially block. -
readAsText(
Blob blob, [String encoding]) → String -
The
readAsText()
method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string. This interface is only available in workers as it enables synchronous I/O that could potentially block. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited