updateContext method

  1. @override
void updateContext(
  1. GraphicsContext context
)
override

Implementation

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