BadDestination.unreachableLocation constructor

BadDestination.unreachableLocation({
  1. required NavigationStack from,
  2. required Destination to,
  3. 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",
    );