PictureStreamCompleter class abstract

Base class for those that manage the loading of dart:ui.Picture objects for PictureStreams.

PictureStreamListener objects are rarely constructed directly. Generally, an PictureProvider subclass will return an PictureStream and automatically configure it with the right PictureStreamCompleter when possible.

Mixed in types
Implementers

Constructors

PictureStreamCompleter()

Properties

cached bool
Whether or not this completer is in the PictureCache.
getter/setter pair
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.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
isCompatible(SvgTheme oldData, SvgTheme newData) bool
Tests whether the currently set PictureInfo, if any, is compatible for the given theme change.
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.
setPicture(PictureInfo? picture) → void
Calls all the registered listeners to notify them of a new picture.
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