BaseRequest constructor

BaseRequest(
  1. String method,
  2. Uri url, {
  3. RequestController? controller,
})

Implementation

BaseRequest(String method, this.url, {this.controller})
    : method = _validateMethod(method),
      headers = LinkedHashMap(
          equals: (key1, key2) => key1.toLowerCase() == key2.toLowerCase(),
          hashCode: (key) => key.toLowerCase().hashCode);