PictureInfo class

Represents information about a ui.Picture to be drawn on a canvas.

Constructors

PictureInfo({required Picture picture, required Rect viewport, Size size = Size.infinite, required CacheCompatibilityTester compatibilityTester})
Creates a new PictureInfo object.

Properties

compatibilityTester CacheCompatibilityTester
A tester for whether ambienty property changes should invalidate the cache for the Picture.
final
debugHandleCount int?
Returns the number of open picture handles on this picture info.
no setter
hashCode int
The hash code for this object.
no setterinherited
picture Picture?
The raw picture.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
The requested size for this picture, which may be different than the viewport.size.
final
viewport Rect
The viewport enclosing the coordinates used in the picture.
final

Methods

createHandle() PictureHandle
Creates a PictureHandle that keeps the picture from being disposed.
createLayer() PictureLayer
Creates a PictureLayer that will suitably manage the lifecycle of the picture.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited