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