I opted to use this class from dart:html instead of Uri because I just wanted to manipulate a search query (without other parts of the url being available).
EDIT: I didn't find this until I compiled using dart2js since in the dev compiler the JavaScript toString is actually used. At the very least this is a discrepancy.
You should be able to use
URLSearchParams.toString()
to get a "a query string suitable for use in a URL." (https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/toString). Instead you getInstance of 'Interceptor'
.Looks related: https://github.com/dart-lang/sdk/issues/30096
I opted to use this class from
dart:html
instead ofUri
because I just wanted to manipulate a search query (without other parts of the url being available).EDIT: I didn't find this until I compiled using
dart2js
since in the dev compiler the JavaScript toString is actually used. At the very least this is a discrepancy.