requestRelativeUrl property
String
get
requestRelativeUrl
Implementation
String get requestRelativeUrl {
var ps = queryParams.entries
.where((entry) => entry.value != null)
.map((entry) => '${entry.key}=${entry.value}');
String queryString = ps.isNotEmpty ? '?' + ps.join('&') : '';
var requestPath = path;
pathParams.forEach((key, value) =>
requestPath = requestPath!.replaceAll("{$key}", "$value"));
String url = joinString((_) {
_ += requestPath;
_ += queryString;
}, '');
return url;
}