locationQuery property

String locationQuery
inherited

Location query

Implementation

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

Set a location query

Implementation

set locationQuery(final String fullQuery) {
  var trimmedQuery = fullQuery;
  if (trimmedQuery.startsWith('?')) {
    trimmedQuery = trimmedQuery.substring(1);
  }
  clearLocationQuery();
  trimmedQuery.split('&').forEach(addLocationQuery);
}