FliqRequest constructor

FliqRequest(
  1. String method,
  2. String url,
  3. HttpClient client
)

Constructs a new instance of FliqRequest.

Example:

final client = Fliq();
final request = client.get('https://example.com');

Implementation

FliqRequest(String method, String url, HttpClient client) {
  _responseCompleter = Completer<HttpClientResponse>();
  client.openUrl(method, Uri.parse(url)).then((request) {
    _client = client;
    _request = request;
  });
}