navigatorTree property
List<List<ImplicitNavigatorState<Object?> > >
navigatorTree
A tree containing all active (see isActive) implicit navigators currently in the widget tree at or below this navigator.
See isActive.
Implementation
List<List<ImplicitNavigatorState<Object?>>> get navigatorTree {
if (!isActive) {
// This navigator is currently disabled or in an inactive page route.
return [];
}
return [
[this],
..._children.expand((child) => child.navigatorTree),
];
}