currentChild property
The active child representation of an implementation of this controller
e.g it could be the top-most route of a StackRouter or the child corresponding with activeIndex in TabsRouter
Implementation
@override
RouteData? get currentChild {
if (_activeIndex < _pages.length) {
return _pages[_activeIndex].routeData;
} else {
return null;
}
}