OneFramePictureStreamCompleter class

Manages the loading of dart:ui.Picture objects for static PictureStreams (those with only one frame).

Inheritance

Constructors

OneFramePictureStreamCompleter(Future<PictureInfo?> picture, {InformationCollector? informationCollector})
Creates a manager for one-frame PictureStreams.

Properties

cached bool
Whether or not this completer is in the PictureCache.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
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 PictureInfo object is available. If a concrete image is already available, this object will call the listener synchronously.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
isCompatible(SvgTheme oldData, SvgTheme newData) bool
Tests whether the currently set PictureInfo, if any, is compatible for the given theme change.
inherited
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.
inherited
setPicture(PictureInfo? picture) → void
Calls all the registered listeners to notify them of a new picture.
inherited
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