FileReader class
Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- FileReader()
-
factory
Properties
- abort ↔ void Function()
-
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair - addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$ extends Event>(FileReaderEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on FileReader, provided by the FileReader$Typings extension
Overload accessor: $1, $2no setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - done → num
-
Available on FileReader, provided by the FileReader$Typings extension
no setter - empty → num
-
Available on FileReader, provided by the FileReader$Typings extension
no setter - error → DOMException?
-
Available on FileReader, provided by the FileReader$Typings extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- loading → num
-
Available on FileReader, provided by the FileReader$Typings extension
no setter -
onabort
↔ dynamic Function(ProgressEvent<
FileReader> )? -
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair -
onerror
↔ dynamic Function(ProgressEvent<
FileReader> )? -
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair -
onload
↔ dynamic Function(ProgressEvent<
FileReader> )? -
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair -
onloadend
↔ dynamic Function(ProgressEvent<
FileReader> )? -
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair -
onloadstart
↔ dynamic Function(ProgressEvent<
FileReader> )? -
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair -
onprogress
↔ dynamic Function(ProgressEvent<
FileReader> )? -
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair - readAsArrayBuffer ↔ void Function(Blob)
-
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair - readAsBinaryString ↔ void Function(Blob)
-
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair - readAsDataURL ↔ void Function(Blob)
-
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair - readAsText ↔ void Function(Blob, [String?])
-
Available on FileReader, provided by the FileReader$Typings extension
getter/setter pair - readyState → num
-
Available on FileReader, provided by the FileReader$Typings extension
no setter - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$ extends Event>(FileReaderEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on FileReader, provided by the FileReader$Typings extension
Overload accessor: $1, $2no setter - result → dynamic
-
Available on FileReader, provided by the FileReader$Typings extension
no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited