didPush method
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;
}