Uri uri

The Uri that this UriData is giving access to.

Returns a Uri with scheme data and the remainder of the data URI as path.

Source

Uri get uri {
  if (_uriCache != null) return _uriCache;
  String path = _text;
  String query = null;
  int colonIndex = _separatorIndices[0];
  int queryIndex = _text.indexOf('?', colonIndex + 1);
  int end = null;
  if (queryIndex >= 0) {
    query = _text.substring(queryIndex + 1);
    end = queryIndex;
  }
  path = _text.substring(colonIndex + 1, end);
  // TODO(lrn): This can generate a URI that isn't path normalized.
  // That's perfectly reasonable - data URIs are not hierarchical,
  // but it may make some consumers stumble.
  // Should we at least do escape normalization?
  _uriCache = new _Uri._internal("data", "", null, null, path, query, null);
  return _uriCache;
}