FileWriter class

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

Constants

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

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

DONEint
@DocsEditable(), @DomName('FileWriter.DONE')
2
errorEventEventStreamProvider<Event>
@DocsEditable(), @DomName('FileWriter.errorEvent')

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

const EventStreamProvider<Event>('error')
INITint
@DocsEditable(), @DomName('FileWriter.INIT')
0
progressEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileWriter.progressEvent')

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

const EventStreamProvider<ProgressEvent>('progress')
writeEndEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileWriter.writeendEvent')

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

const EventStreamProvider<ProgressEvent>('writeend')
writeEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileWriter.writeEvent')

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

writeStartEventEventStreamProvider<ProgressEvent>
@DocsEditable(), @DomName('FileWriter.writestartEvent')

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

const EventStreamProvider<ProgressEvent>('writestart')
WRITINGint
@DocsEditable(), @DomName('FileWriter.WRITING')
1

Static Properties

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

Constructors

FileWriter.internal_()

Properties

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

Stream of abort events handled by this FileWriter.

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

Stream of error events handled by this FileWriter.

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

Stream of progress events handled by this FileWriter.

onWriteStream<ProgressEvent>
@DocsEditable(), @DomName('FileWriter.onwrite'), read-only

Stream of write events handled by this FileWriter.

onWriteEndStream<ProgressEvent>
@DocsEditable(), @DomName('FileWriter.onwriteend'), read-only

Stream of writeend events handled by this FileWriter.

onWriteStartStream<ProgressEvent>
@DocsEditable(), @DomName('FileWriter.onwritestart'), read-only

Stream of writestart events handled by this FileWriter.

positionint
@DocsEditable(), @DomName('FileWriter.position'), read-only
readyStateint
@DocsEditable(), @DomName('FileWriter.readyState'), 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('FileWriter.abort')
seek(int position) → void
@DocsEditable(), @DomName('FileWriter.seek')
truncate(int size) → void
@DocsEditable(), @DomName('FileWriter.truncate')
write(Blob data) → void
@DocsEditable(), @DomName('FileWriter.write')
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/FileWriter-class.html