HttpTransport constructor

HttpTransport(
  1. String url, {
  2. Map<String, String> headers = const {},
  3. Duration timeout = const Duration(seconds: 30),
  4. Client? client,
})

Implementation

HttpTransport(
  this.url, {
  this.headers = const {},
  this.timeout = const Duration(seconds: 30),
  http.Client? client,
}) : _client = client ?? http.Client();