getVisualPages method
gets the visual pages from the current _activePages entry
visual pages must have GetPage.participatesInRootNavigator set to true
Implementation
Iterable<GetPage> getVisualPages(RouteDecoder? currentHistory) {
final res = currentHistory!.currentTreeBranch
.where((r) => r.participatesInRootNavigator != null);
if (res.isEmpty) {
//default behavior, all routes participate in root navigator
return _activePages.map((e) => e.route!);
} else {
//user specified at least one participatesInRootNavigator
return res
.where((element) => element.participatesInRootNavigator == true);
}
}