void updateGestureDetector()

Fixes up the gesture detector to listen to the appropriate gestures based on the current information about the layout.

This method should be called from the onPaintOffsetUpdateNeeded or onExtentsChanged handler given to the Viewport or equivalent used by the subclass's buildContent method. See the buildContent method's description for details.

Source

void updateGestureDetector() {
  _gestureDetectorKey.currentState.replaceGestureRecognizers(buildGestureDetectors());
}