withParams method
Get the path of the route with arguments.
Implementation
String withParams(Map<String, dynamic> args) {
String path = this.$1;
args.forEach((key, value) {
path = path.replaceAll("{$key}", value.toString());
});
return path;
}