handleLongPressEnd method

  1. @override
void handleLongPressEnd(
  1. LongPressEndDetails details
)

Called when the pointer stops contacting the screen after a long-press by a primary button in behavior.

Implementation

@override
void handleLongPressEnd(LongPressEndDetails details) {
  if (parentBox == null || !enableSelectionZooming) {
    return;
  }
  if (_zoomRectStartPosition != null && _zoomingRect.width != 0) {
    _drawSelectionZoomRect(_zoomingRect);
  }
  _zoomRectStartPosition = null;
  _zoomingRect = Rect.zero;
  parentBox!.markNeedsPaint();
}