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