ImageStream class

A handle to an image resource.

ImageStream represents a handle to a dart:ui.Image object and its scale (together represented by an ImageInfo object). The underlying image object might change over time, either because the image is animating or because the underlying image resource was mutated.

ImageStream objects can also represent an image that hasn't finished loading.

ImageStream objects are backed by ImageStreamCompleter objects.

See also:

Inheritance

Constructors

ImageStream()
Create an initially unbound image stream. [...]

Properties

completer ImageStreamCompleter
The completer that has been assigned to this image stream. [...]
read-only
key Object
Returns an object which can be used with == to determine if this ImageStream shares the same listeners list as another ImageStream. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addListener(ImageListener listener, { ImageErrorListener onError }) → void
Adds a listener callback that is called whenever a new concrete ImageInfo object is available. If a concrete image is already available, this object will call the listener synchronously. [...]
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
removeListener(ImageListener listener) → void
Stop listening for new concrete ImageInfo objects and errors from the listener's associated ImageErrorListener.
setCompleter(ImageStreamCompleter value) → void
Assigns a particular ImageStreamCompleter to this ImageStream. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style }) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited