navigationStackFrom method
Modifies the navigation stack based on the current stack and the new navigation type.
Implementation
@override
List<ViewNavigationType> navigationStackFrom(
List<ViewNavigationType> currentStack,
) {
return [
...currentStack.take(currentStack.length - 1),
animationType.navigationType(analyticsIdentifiable, key),
];
}