DrawableGroup class

Represents a group of drawing elements that may share a common transform, stroke, or fill.

Implemented types

Constructors

DrawableGroup(String? id, List<Drawable>? children, DrawableStyle? style, {Float64List? transform, Color? color})
Creates a new DrawableGroup.
const

Properties

children List<Drawable>?
The child Drawables of this DrawableParent.
final
color Color?
The default color used to provide a potential indirect color value for the fill, stroke and stop-color of descendant elements.
final
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
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) DrawableGroup
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