BaseRequest constructor Null safety

BaseRequest(
  1. String method,
  2. Uri url
)

Implementation

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