locationQuery property
Location query
Implementation
// TODO: Apply proper percent-encoding
String get locationQuery =>
getOptions(OptionType.locationQuery)
?.map((final e) => e.stringValue.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);
}