RepositoryHttpRequest constructor

const RepositoryHttpRequest({
  1. required Uri url,
  2. Map<String, String>? headers,
})

This is used by RepositoryHttpClient to make HTTP requests. You can use this class to create your own HTTP client, or just use the default one. But notice that Repositories will only use GET method.

Implementation

const RepositoryHttpRequest({
  required this.url,
  Map<String, String>? headers,
}) : headers = headers ?? const {};