Where you can go
When you’re pushing a new screen, you pick one way to say where to go:
Going back is simpler: use pop or popAll with
navigationStyle (and optionally result when popping).
Using StacNavigator in Dart
In Dart,StacNavigator gives you clear, type-safe helpers so you don’t hand-build action objects yourself.
Going back: StacNavigator.pop({ result }) pops the current route (and can pass result to the previous one). StacNavigator.popAll() pops back to the root.
Stac screens: pushStac(routeName), pushReplacementStac(routeName), pushAndRemoveAllStac(routeName). Optional arguments on push, optional result on replacement.
Flutter routes: Same pattern with pushFlutter, pushReplacementFlutter, pushAndRemoveAllFlutter—use your app’s route names.
Inline JSON, assets, network: pushJson, pushAsset, pushNetwork (and their pushReplacement* and pushAndRemoveAll* variants) do what the names say. Handy when the screen comes from a blob of JSON, a local file, or an API call.
Navigation styles at a glance
Examples
Each example shows the Dart form (e.g. on a button’sonPressed) and the equivalent JSON you’d use in a Stac action.