get static method

String? get(
  1. String key
)

Get the value of a query parameter.

Implementation

static String? get(String key) {
  final query = window.location.search;
  final uri = Uri.parse(query);

  return uri.queryParameters[key];
}