SplineElement class

A spline element consisting of cubic bezier segments.

Inheritance

Constructors

SplineElement({required Offset start, required List<List<Offset>> cubics, required PaintStyle style, double? rotation, Offset? rotationAxis, String? tag})
Creates a spline element.

Properties

cubics List<List<Offset>>
The control points of cubic bezier segments of this spline.
final
hashCode int
The hash code for this object.
no setterinherited
path Path
The path of this shape.
finalinherited
rotation double?
The rotation of this element.
finalinherited
rotationAxis Offset?
The rotation axis of this element.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Offset
The start point of this spline.
final
style PaintStyle
The style of this element.
finalinherited
tag String?
The tag to indicate correspondence of this element in animation.
finalinherited

Methods

draw(Canvas canvas) → void
Indicates how this element is drawn.
inherited
drawPath(Path path) → void
How to draw path of this shape.
override
lerpFrom(covariant SplineElement from, double t) SplineElement
Linearly interpolate between this element and from.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas) → void
Paints this element on canvas.
inherited
toSegments() List<Segment>
Converts this shape to path segments.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override