FileReader class

Inheritance
Annotations
  • @DocsEditable()
  • @DomName('FileReader')

Constants

abortEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileReader.abortEvent')

Static factory designed to expose abort events to event handlers that are not necessarily instances of FileReader.

DONEint
@DocsEditable(), @DomName('FileReader.DONE')
2
EMPTYint
@DocsEditable(), @DomName('FileReader.EMPTY')
0
errorEventEventStreamProvider<Event>
@DocsEditable(), @DomName('FileReader.errorEvent')

Static factory designed to expose error events to event handlers that are not necessarily instances of FileReader.

const EventStreamProvider<Event>('error')
loadEndEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileReader.loadendEvent')

Static factory designed to expose loadend events to event handlers that are not necessarily instances of FileReader.

loadEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileReader.loadEvent')

Static factory designed to expose load events to event handlers that are not necessarily instances of FileReader.

LOADINGint
@DocsEditable(), @DomName('FileReader.LOADING')
1
loadStartEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileReader.loadstartEvent')

Static factory designed to expose loadstart events to event handlers that are not necessarily instances of FileReader.

const EventStreamProvider<ProgressEvent>('loadstart')
progressEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileReader.progressEvent')

Static factory designed to expose progress events to event handlers that are not necessarily instances of FileReader.

const EventStreamProvider<ProgressEvent>('progress')

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

FileReader()
factory
FileReader.internal_()

Properties

errorFileError
@DocsEditable(), @DomName('FileReader.error'), read-only
onAbortStream<ProgressEvent>
@DocsEditable(), @DomName('FileReader.onabort'), read-only

Stream of abort events handled by this FileReader.

onErrorStream<Event>
@DocsEditable(), @DomName('FileReader.onerror'), read-only

Stream of error events handled by this FileReader.

onLoadStream<ProgressEvent>
@DocsEditable(), @DomName('FileReader.onload'), read-only

Stream of load events handled by this FileReader.

onLoadEndStream<ProgressEvent>
@DocsEditable(), @DomName('FileReader.onloadend'), read-only

Stream of loadend events handled by this FileReader.

onLoadStartStream<ProgressEvent>
@DocsEditable(), @DomName('FileReader.onloadstart'), read-only

Stream of loadstart events handled by this FileReader.

onProgressStream<ProgressEvent>
@DocsEditable(), @DomName('FileReader.onprogress'), read-only

Stream of progress events handled by this FileReader.

readyStateint
@DocsEditable(), @DomName('FileReader.readyState'), read-only
resultObject
@DocsEditable(), @DomName('FileReader.result'), read-only
hashCodeint
read-only, inherited
onEvents
read-only, inherited

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

abort() → void
@DocsEditable(), @DomName('FileReader.abort')
readAsArrayBuffer(Blob blob) → void
@DocsEditable(), @DomName('FileReader.readAsArrayBuffer')
readAsDataUrl(Blob blob) → void
@DocsEditable(), @DomName('FileReader.readAsDataURL')
readAsText(Blob blob, [ String label ]) → void
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/FileReader-class.html