params method
Returns a empty Map if an error occurs.
Implementation
Map<String, String> params() {
Uri uri;
Map<String, String> params;
try {
uri = Uri.dataFromString(window.location.href);
params = uri.queryParameters;
} catch (ex) {
// Empty if there's a problem
params = {};
}
return params;
}