ShapeEntity class

One vector shape drawn by a sprite on a given frame.

Constructors

ShapeEntity({required SVGAShapeType type, SVGAVectorPath? outline, double x = 0, double y = 0, double width = 0, double height = 0, double cornerRadius = 0, SVGAShapeStyle? style, SVGATransform? transform})

Properties

cornerRadius → double
Geometry for rects (x, y, width, height, cornerRadius) and ellipses (centre x, y and radii in width, height).
final
d → String
SVG path text for SVGAShapeType.shape, empty otherwise.
no setter
hashCode → int
The hash code for this object.
no setterinherited
height → double
Geometry for rects (x, y, width, height, cornerRadius) and ellipses (centre x, y and radii in width, height).
final
outline → SVGAVectorPath?
The outline for SVGAShapeType.shape; shared between every shape in the file that uses the same path text.
final
path → Path?
The engine path for this shape, or null if it draws nothing.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → SVGAShapeStyle?
final
transform → SVGATransform?
final
type → SVGAShapeType
final
width → double
Geometry for rects (x, y, width, height, cornerRadius) and ellipses (centre x, y and radii in width, height).
final
x → double
Geometry for rects (x, y, width, height, cornerRadius) and ellipses (centre x, y and radii in width, height).
final
y → double
Geometry for rects (x, y, width, height, cornerRadius) and ellipses (centre x, y and radii in width, height).
final

Methods

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