locationQuery property
Location query
Implementation
// TODO(JKRhb): Apply proper percent-encoding
String get locationQuery => getOptions<LocationQueryOption>()
.map((final e) => e.value.replaceAll('&', '%26'))
.join('&');
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);
}