BadDestination.unreachableLocation constructor
BadDestination.unreachableLocation({
- required NavigationStack from,
- required Destination to,
- String message = "Unreachable Location",
Destination used when the destionation is unreachable
It indicates there is no possible route from from
destination to to
destination.
Implementation
factory BadDestination.unreachableLocation({
required NavigationStack from,
required Destination to,
String message = "Unreachable Location",
}) =>
BadDestination._(
name: unreachableLocationError,
message: message,
detail: "${from.allNodes.toList(growable: false)} -> $to",
);