Get the value of a query parameter.
static String? get(String key) { final query = window.location.search; final uri = Uri.parse(query); return uri.queryParameters[key]; }