getUrl method
Implementation
String getUrl([
Map<String, Object?> params = const {},
Map<String, Object?> queries = const {},
]) {
String path = getFullPath();
params.forEach((key, value) {
path = path.replaceAll('{$key}', value.toString());
});
Map<String, String> q =
queries.map((key, value) => MapEntry(key, value.toString()));
return Context.rq.url(path, params: q);
}