drawHighlight method

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

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,
    );
  }
}