addToPath method

  1. @override
void addToPath(
  1. Path path
)
override

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);
  }
}