updateSelectionRect method

void updateSelectionRect()

Implementation

void updateSelectionRect() {
  if (selectionStartPoint.value != null && selectionEndPoint.value != null) {
    final start = selectionStartPoint.value!;
    final end = selectionEndPoint.value!;

    selectionRect.value = Rect.fromPoints(start, end);
  }
}