uriAsJson property
String
get
uriAsJson
Implementation
String get uriAsJson {
var uri = this.uri;
if (uri.scheme == 'file') {
var path = uri.path;
var query = uri.query;
return query.isEmpty ? path : '$path?$query';
} else {
var uriStr = uri.toString();
if (uriStr.endsWith('?')) {
uriStr = uriStr.substring(0, uriStr.length - 1);
}
return uriStr;
}
}