of<R> static method
Returns the closest NuvigatorPageRoute
Implementation
static NuvigatorPageRoute<R>? of<R>(BuildContext context) {
final route = ModalRoute.of<R>(context);
if (route is NuvigatorPageRoute) {
return route as NuvigatorPageRoute<R>?;
}
return null;
}