receivedTransition property
The DelegatedTransitionBuilder received from the route above this one in the navigation stack.
Used for the purposes of coordinating transitions between two routes with
different route transitions. When a route is added to the stack, the original
topmost route will look for this transition, and if available, it will use
the delegatedTransition
from the incoming transition to animate off the
screen.
If the return of the DelegatedTransitionBuilder is null, then by default the original transition of the routes will be used. This is useful if a route can conditionally provide a transition based on the BuildContext.
The receivedTransition
will use the above route's delegatedTransition in
order to show the right route transition when the above route either enters
or leaves the navigation stack. If not null, the receivedTransition
will
wrap the route content.
Implementation
@visibleForTesting
DelegatedTransitionBuilder? receivedTransition;