1. override
void updateContext(GraphicsContext context)

Source

@override
void updateContext(GraphicsContext context) {
  context.moveTo(x + ellipseWidth, y);
  context.lineTo(x + width - ellipseWidth, y);
  context.quadraticCurveTo(x + width, y, x + width, y + ellipseHeight);
  context.lineTo(x + width, y + height - ellipseHeight);
  context.quadraticCurveTo(x + width, y + height, x + width - ellipseWidth, y + height);
  context.lineTo(x + ellipseWidth, y + height);
  context.quadraticCurveTo(x, y + height, x, y + height - ellipseHeight);
  context.lineTo(x, y + ellipseHeight);
  context.quadraticCurveTo(x, y, x + ellipseWidth, y);
  context.closePath();
}