whenRouteUncovered function
Completes once the route context is on stops moving under the route
above it, as while that route still leaves after its pop.
Implementation
Future<void> whenRouteUncovered(BuildContext context) async {
final animation = ModalRoute.of(context)?.secondaryAnimation;
if (animation != null) {
await _whenStill(animation);
}
}