displayUrl property

String get displayUrl

Implementation

String get displayUrl {
  try {
    final uri = Uri.parse(url);
    return uri.path.isEmpty ? url : uri.path;
  } catch (_) {
    return url;
  }
}