DrawableRasterImage class

A raster image (e.g. PNG, JPEG, or GIF) embedded in the drawable.

Implemented types

Constructors

DrawableRasterImage(String? id, Image image, Offset offset, DrawableStyle style, {Size? size, Float64List? transform})
Creates a new DrawableRasterImage.
const

Properties

hasDrawableContent bool
Whether this Drawable would be visible if drawn.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String?
A string that should uniquely identify this Drawable within its DrawableRoot.
final
image Image
The Image to draw.
final
offset Offset
The position for the top-left corner of the image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size?
The size to scale the image to.
final
style DrawableStyle
The DrawableStyle for this object.
final
transform Float64List?
The 4x4 transform to apply to this Drawable, if any.
final

Methods

draw(Canvas canvas, Rect bounds) → void
Draws the contents or children of this Drawable to the canvas, using the parentPaint to optionally override the child's paint.
override
mergeStyle(DrawableStyle newStyle) DrawableRasterImage
Creates an instance with merged style information.
override
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