drawOnCanvas method

  1. @override
void drawOnCanvas(
  1. Canvas canvas,
  2. Rect rectangle,
  3. Paint paint
)
override

Draw the shape on the specified canvas.

Implementation

@override
void drawOnCanvas(Canvas canvas, Rect rectangle, Paint paint) {
  canvas.drawRect(rectangle.inflate(spreadRadius), paint);
}