addToPath method
add the given path to the PathElement
Implementation
@override
void addToPath(Path path) {
if (relative) {
path.relativeCubicTo(
firstControlPoint.dx,
firstControlPoint.dy,
secondControlPoint.dx,
secondControlPoint.dy,
endPoint.dx,
endPoint.dy);
} else {
path.cubicTo(
firstControlPoint.dx,
firstControlPoint.dy,
secondControlPoint.dx,
secondControlPoint.dy,
endPoint.dx,
endPoint.dy);
}
}