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