RouterConfig#
✅ All RouterConfig Parameters#
RouterConfig(
routerDelegate: The RouterDelegate that builds the Navigator tree. ⭐ Required for navigation logic.
routeInformationParser: Parses route information (URL → route data).
routeInformationProvider: Supplies new route information to the app (URL updates).
- backButtonDispatcher:
Handles system back button events (Android / Web back navigation).
- routeInformationReporter:
Sends route updates from the app to the OS / browser.
- restorationScopeId:
Restoration ID for state restoration.
- widgetBuilder:
Builds the root widget around the router (rarely used).
- routerNeglect:
Boolean: if true, RouterConfig ignores some route updates. Default: false.
)