didPush method

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

This class will observe the routes like push, pop and other. the class will update de context to use in the controller

Implementation

@override
void didPush(Route<dynamic> route, Route<dynamic>? previousRoute) {
  asyncState.setContext = navigator!.context;
}