didStartUserGesture method

  1. @override
void didStartUserGesture(
  1. Route route,
  2. Route? previousRoute
)
override

The Navigator's routes are being moved by a user gesture.

For example, this is called when an iOS back gesture starts, and is used to disabled hero animations during such interactions.

Implementation

@override
void didStartUserGesture(
  Route<dynamic> route,
  Route<dynamic>? previousRoute,
) {
  super.didStartUserGesture(route, previousRoute);
  _navigation?.add(
    NavigationBehavior(
      type: NavigationBehaviorType.didStartUserGesture,
      route: route,
      previousRoute: previousRoute,
    ),
  );
}