subscribe method

void subscribe(
  1. RouteAware self,
  2. BuildContext context
)

Implementation

void subscribe(RouteAware self,BuildContext context){
 _routeObserver.subscribe(self, ModalRoute.of(context)!);
}