paintSelectionRectangle method

void paintSelectionRectangle(
  1. Canvas canvas,
  2. Rect selectionRect
)

Paints multi-selection rectangle with optimized performance

Implementation

void paintSelectionRectangle(Canvas canvas, Rect selectionRect) {
  // Ultra-fast painting with pre-calculated paint objects
  canvas.drawRect(selectionRect, _fillPaint);
  canvas.drawRect(selectionRect, _borderPaint);
}