DecorationImagePainter class Null safety

The painter for a DecorationImage.

To obtain a painter, call DecorationImage.createPainter.

To paint, call paint. The onChanged callback passed to DecorationImage.createPainter will be called if the image needs to paint again (e.g. because it is animated or because it had not yet loaded the first time the paint method was called).

This object should be disposed using the dispose method when it is no longer needed.


hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


dispose() → void
Releases the resources used by this painter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
paint(Canvas canvas, Rect rect, Path? clipPath, ImageConfiguration configuration) → void
Draw the image onto the given canvas.
toString() String
A string representation of this object.


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