RouteDecoder.fromRoute constructor
RouteDecoder.fromRoute(
- String location
Implementation
factory RouteDecoder.fromRoute(String location) {
var uri = Uri.parse(location);
final args = PageSettings(uri);
final decoder = (Flower.rootController.routerDelegate as FlowerDelegate)
.matchRoute(location, arguments: args);
decoder.route = decoder.route?.copy(
completer: null,
arguments: args,
parameters: args.params,
);
return decoder;
}