1. override
void updateContext(GraphicsContext context)

Source

@override
void updateContext(GraphicsContext context) {
  context.bezierCurveTo(controlX1, controlY1, controlX2, controlY2, endX, endY);
}