HttpOptions.from constructor

HttpOptions.from({
  1. String? responseType,
  2. int? connectTimeout,
  3. int? sendTimeout,
  4. int? receiveTimeout,
  5. Map<String, dynamic>? headers,
})

Implementation

HttpOptions.from({
  String? responseType,
  this.connectTimeout,
  this.sendTimeout,
  this.receiveTimeout,
  this.headers,
}) : responseType = responseType == null ? null : HttpResponseType.fromName(responseType);