didStartUserGesture method
- @override
override
The Navigator's route route
is being moved by a user gesture.
For example, this is called when an iOS back gesture starts.
Paired with a call to didStopUserGesture when the route is no longer being manipulated via user gesture.
If present, the route immediately below route
is previousRoute
.
Though the gesture may not necessarily conclude at previousRoute
if
the gesture is canceled. In that case, didStopUserGesture is still
called but a follow-up didPop is not.
Implementation
@override
void didStartUserGesture(Route<dynamic> route, Route<dynamic> previousRoute) {
assert(navigator != null);
assert(route != null);
_maybeStartHeroTransition(route, previousRoute, HeroFlightDirection.pop, true);
}