Not documented.

Inheritance
Annotations
  • DocsEditable()
  • DomName('FileWriter')
  • Experimental()

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 FileWriter.

int DONE = 2
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 FileWriter.

int INIT = 0
const

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

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

EventStreamProvider<ProgressEvent> writeEndEvent = const EventStreamProvider<ProgressEvent>('writeend')
const

Static factory designed to expose writeend events to event handlers that are not necessarily instances of FileWriter.

EventStreamProvider<ProgressEvent> writeEvent = const EventStreamProvider<ProgressEvent>('write')
const

Static factory designed to expose write events to event handlers that are not necessarily instances of FileWriter.

EventStreamProvider<ProgressEvent> writeStartEvent = const EventStreamProvider<ProgressEvent>('writestart')
const

Static factory designed to expose writestart events to event handlers that are not necessarily instances of FileWriter.

int WRITING = 1
const

Properties

error FileError
read-only

length int
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 FileWriter.

onError Stream<Event>
read-only

Stream of error events handled by this FileWriter.

onProgress Stream<ProgressEvent>
read-only

Stream of progress events handled by this FileWriter.

onWrite Stream<ProgressEvent>
read-only

Stream of write events handled by this FileWriter.

onWriteEnd Stream<ProgressEvent>
read-only

Stream of writeend events handled by this FileWriter.

onWriteStart Stream<ProgressEvent>
read-only

Stream of writestart events handled by this FileWriter.

position int
read-only

readyState int
read-only

Methods

abort() → void

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

dispatchEvent(Event event) → bool
inherited

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

seek(int position) → void

truncate(int size) → void

write(Blob data) → void