navigationStackFrom method

  1. @override
List<ViewNavigationType> navigationStackFrom(
  1. List<ViewNavigationType> currentStack
)
override

Modifies the navigation stack based on the current stack and the new navigation type.

Implementation

@override
List<ViewNavigationType> navigationStackFrom(
  List<ViewNavigationType> currentStack,
) {
  return [
    ...currentStack,
    ...hiddenPages,
    Push(
      analyticsIdentifiable: AnalyticsIdentifiable(
        screenName: screenName,
        builder: builder,
      ),
      navigationKey: key,
      animated: animated,
    ),
  ];
}