FileReaderSync class

The interface allows to read File or Blob objects synchronously. Note: This feature is available in Web Workers Warning: This interface is only available in workers as it enables synchronous I/O that could potentially block.

Available extensions
Annotations
  • @JS.new()
  • @staticInterop

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) → ByteBuffer

Available on FileReaderSync, provided by the PropsFileReaderSync extension

readAsBinaryString(Blob blob) → String

Available on FileReaderSync, provided by the PropsFileReaderSync extension

readAsDataURL(Blob blob) → String

Available on FileReaderSync, provided by the PropsFileReaderSync extension

readAsText(Blob blob, [String? encoding]) → String

Available on FileReaderSync, provided by the PropsFileReaderSync extension

toString() → String
A string representation of this object.
inherited

Operators

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