drawObject method

void drawObject(
  1. Canvas canvas,
  2. Paint paint
)

Implementation

void drawObject(Canvas canvas, Paint paint) {
  canvas.drawRRect(
    RRect.fromRectAndRadius(
        Rect.fromPoints(
          location,
          location.translate(size.width, size.height),
        ),
        borderRadius),
    paint,
  );
}