Not documented.

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

Constants

EventStreamProvider<ProgressEvent> abortEvent = const EventStreamProvider<ProgressEvent>('abort')
const

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

int DONE = 2
const

int EMPTY = 0
const

EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const

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

EventStreamProvider<ProgressEvent> loadEndEvent = const EventStreamProvider<ProgressEvent>('loadend')
const

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

EventStreamProvider<ProgressEvent> loadEvent = const EventStreamProvider<ProgressEvent>('load')
const

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

int LOADING = 1
const

EventStreamProvider<ProgressEvent> loadStartEvent = const EventStreamProvider<ProgressEvent>('loadstart')
const

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

EventStreamProvider<ProgressEvent> progressEvent = const EventStreamProvider<ProgressEvent>('progress')
const

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

Properties

error FileError
read-only

on Events
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.

onAbort Stream<ProgressEvent>
read-only

Stream of abort events handled by this FileReader.

onError Stream<Event>
read-only

Stream of error events handled by this FileReader.

onLoad Stream<ProgressEvent>
read-only

Stream of load events handled by this FileReader.

onLoadEnd Stream<ProgressEvent>
read-only

Stream of loadend events handled by this FileReader.

onLoadStart Stream<ProgressEvent>
read-only

Stream of loadstart events handled by this FileReader.

onProgress Stream<ProgressEvent>
read-only

Stream of progress events handled by this FileReader.

readyState int
read-only

result Object
read-only

Constructors

FileReader()

Methods

abort() → void

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited

dispatchEvent(Event event) → bool
inherited

readAsArrayBuffer(Blob blob) → void

readAsDataUrl(Blob blob) → void

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

removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited