drawHighlight method
Implementation
void drawHighlight(Canvas canvas, Paint paint) {
if (isHighlight || isSelected) {
paint.color = Colors.blue;
paint.style = PaintingStyle.stroke;
canvas.drawRect(
Rect.fromPoints(
location,
location.translate(size.width, size.height),
),
paint,
);
}
}