uriQuery property

String uriQuery
inherited

URI query

Implementation

// TODO: Apply proper percent-encoding
String get uriQuery =>
    getOptions(OptionType.uriQuery)
        ?.map((final option) => option.stringValue.replaceAll('&', '%26'))
        .join('&') ??
    '';
void uriQuery=(String fullQuery)
inherited

Set a URI query

Implementation

set uriQuery(final String fullQuery) {
  var trimmedQuery = fullQuery;
  if (trimmedQuery.startsWith('?')) {
    trimmedQuery = trimmedQuery.substring(1);
  }
  clearUriQuery();
  trimmedQuery.split('&').forEach(addUriQuery);
}