getHistory method

List<StackNavigator> getHistory()

Gets a copy of the navigation history. Useful for testing.

Implementation

List<StackNavigator> getHistory() {
  return [..._history];
}