BlockedInitialNavigationException class

Raised when Block is returned from onEnter but there is no prior route configuration to restore (e.g., an initial deep link was blocked).

Apps can check for this specific type in onException to recover gracefully (e.g., redirect to a loading screen with the deep link preserved) instead of treating it as a generic routing error.

Inheritance

Constructors

BlockedInitialNavigationException(String message)
Creates an exception for a blocked initial navigation attempt.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The reason that causes this exception.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited