buildPopGestureDetector<T> static method

Widget buildPopGestureDetector<T>(
  1. PageRoute<T> route,
  2. Widget child
)

Implementation

static Widget buildPopGestureDetector<T>(PageRoute<T> route, Widget child) {
  return _BackGestureDetector<T>(
    enabledCallback: () => isPopGestureEnabled<T>(route),
    onStartPopGesture: () {
      assert(isPopGestureEnabled(route));
      return _BackGestureController<T>(
        navigator: route.navigator,
        // ignore: invalid_use_of_protected_member
        controller: route.controller,
      );
    },
    child: child,
  );
}