RequestOptions constructor

RequestOptions({
  1. required String method,
  2. required Uri uri,
  3. Map<String, String>? headers,
  4. dynamic body,
  5. Duration? timeout,
  6. ProgressCallback? onProgress,
  7. CancelToken? cancelToken,
})

Implementation

RequestOptions({
  required this.method,
  required this.uri,
  Map<String, String>? headers,
  this.body,
  this.timeout,
  this.onProgress,
  this.cancelToken,
}) : headers = headers ?? {};