DrawableShape class

Represents a drawing element that will be rendered to the canvas.

Implemented types

Constructors

DrawableShape(String? id, Path path, DrawableStyle style, {Float64List? transform})
Creates a new DrawableShape.
const

Properties

bounds Rect
The bounds of this shape.
no setter
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
path Path
The Path describing this shape.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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) DrawableShape
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