PictureStream class

A handle to an image resource.

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

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

PictureStream objects are backed by PictureStreamCompleter objects.

See also:

Mixed in types

Constructors

PictureStream()
Create an initially unbound image stream.

Properties

completer PictureStreamCompleter?
The completer that has been assigned to this image stream.
no setter
hashCode int
The hash code for this object.
no setterinherited
key Object?
Returns an object which can be used with == to determine if this PictureStream shares the same listeners list as another PictureStream.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(PictureListener listener, {PictureErrorListener? 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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(PictureListener listener) → void
Stop listening for new concrete PictureInfo objects.
setCompleter(PictureStreamCompleter value) → void
Assigns a particular PictureStreamCompleter to this PictureStream.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
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 ==(Object other) bool
The equality operator.
inherited