fromPlatform property

bool fromPlatform
final

True when this navigation is the PLATFORM reporting a location (Router.setNewRoutePath — startup report, URL bar edit, deep link) rather than the app asking to go somewhere. Platform reports that name the current location are reconciled to a no-op instead of pushed: on every cold start the OS reports the same initial path the bloc just seeded, and pushing it duplicated the root page (a phantom back button on launch). In-app navigations never set this, so an intentional re-push of the current route (fresh extra, replace, ...) is untouched.

Implementation

final bool fromPlatform;