BadDestination.from constructor
BadDestination.from(
- RoutePathVisitor visitor
Create BadDestination.unknownLocation from RoutePathVisitor
It calls visitor.badLocation
to retrieve the full location string and also mark the visitor as bad location.
Implementation
factory BadDestination.from(RoutePathVisitor visitor) =>
BadDestination.unknownLocation(visitor.badLocation());