GraphicsDrawingData class

Data class that holds information about a graphic element's drawing data.

Constructors

GraphicsDrawingData([Paint? fill, Path? path])
Creates a new instance of GraphicsDrawingData with the given fill and path.

Properties

blendMode BlendMode
The blend mode applied to the element, used for drawVertices().
getter/setter pair
fill Paint?
The paint to be applied to the element.
getter/setter pair
gradient Gradient?
The gradient applied to the element.
getter/setter pair
hasGradient bool
Returns a boolean value indicating if the element has a gradient.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasPicture bool
Returns a boolean value indicating if the element has a picture.
no setter
hasVertices bool
Returns a boolean value indicating if the element has vertices.
no setter
isHole bool
Flag that indicates if the element is a hole or not.
getter/setter pair
path Path?
The path of the element.
getter/setter pair
picture Picture?
The picture applied to the element.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shaderTexture GTexture?
The texture to be used in the image shader, if any. For Graphics.beginBitmapFill and Graphics.beginShader.
getter/setter pair
vertices ↔ GraphicsVertices?
The vertices data of the element.
getter/setter pair

Methods

clone([bool cloneFill = false, bool clonePath = false]) GraphicsDrawingData
Creates a new instance of GraphicsDrawingData from the current instance. When cloning, we can pass fill and path by reference or make a deep copy. Mostly intended for direct Graphics.pushData and Graphics.removeData manipulation.
isSameType(Paint otherFill) bool
Returns a boolean value indicating if the provided paint is of the same type as the fill of this instance.
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