shouldPreventPopForExtent method

  1. @protected
bool shouldPreventPopForExtent(
  1. double extent
)

Returns true if the controller should prevent popping for a given extent

Implementation

@protected
bool shouldPreventPopForExtent(double extent) {
  return extent < willPopThreshold &&
      hasScopedWillPopCallback &&
      controller!.velocity <= 0;
}