RequestParamsMutable.fromUrl constructor

RequestParamsMutable.fromUrl(
  1. String uri
)

Parse the query parameters from a URI.

All the other parts of the URI are ignored.

Implementation

RequestParamsMutable.fromUrl(String uri) : super._internalConstructor() {
  final q = uri.indexOf('?');
  final queryString = (0 <= q) ? uri.substring(q + 1) : uri;

  _populateFromQueryString(queryString);
}