pageInstances property
List<StandardPageInterface<Object?, Object?> >
get
pageInstances
The current Page history.
Returns a flattened list of all Page instances, including both root pages and nested pages within nested navigators, collected recursively in order of addition.
Implementation
List<StandardPageInterface> get pageInstances {
final tInstances = <StandardPageInterface>[];
void fPushNestedPages(StandardPageInterface page) {
tInstances.add(page);
final tNestedPages = _nestedPageInstances[page];
if (tNestedPages != null) {
for (var i in tNestedPages) {
fPushNestedPages(i);
}
}
}
for (var i in _rootPageInstances) {
fPushNestedPages(i);
}
return tInstances;
}