DecorationImagePainterToo class
The painter for a DecorationImageToo.
To obtain a painter, call DecorationImageToo.createPainter.
To paint, call paint. The onChanged
callback passed to
DecorationImageToo.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.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Releases the resources used by this painter.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Rect rect, Path? clipPath, ImageConfiguration configuration) → void -
Draw the image onto the given canvas.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited