A handle to an image resource.

ImageStream represents a handle to a 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.

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

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addListener(ImageListener listener) → void

Adds a listener callback that is called whenever a concrete ImageInfo object is available. If a concrete image is already available, this object will call the listener synchronously.

removeListener(ImageListener listener) → void

Stop listening for new concrete ImageInfo objects.

setCompleter(ImageStreamCompleter value) → void

Assigns a particular ImageStreamCompleter to this ImageStream.

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

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

inherited