getRouteNameStack method
Returns the list of route names represented as a stack of routes currently push by Navigator.
Head and tail of list are bottom and top of stack respectively.
Implementation
UnmodifiableListView<String?> getRouteNameStack() {
final stack = this.routeStack.reversed.map((route) => route.settings.name);
return UnmodifiableListView(stack);
}