The Uri that this UriData
is giving access to.
Returns a Uri
with scheme data
and the remainder of the data URI as path.
Uri get uri { if (_uriCache != null) return _uriCache; String path = _text; String query; int colonIndex = _separatorIndices[0]; int queryIndex = _text.indexOf('?', colonIndex + 1); int end = _text.length; if (queryIndex >= 0) { query = _Uri._normalizeOrSubstring( _text, queryIndex + 1, end, _Uri._queryCharTable); end = queryIndex; } path = _Uri._normalizeOrSubstring( _text, colonIndex + 1, end, _Uri._pathCharOrSlashTable); _uriCache = _DataUri(this, path, query); return _uriCache; }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/UriData/uri.html