RequestOptions constructor

RequestOptions({
  1. required String method,
  2. required Uri uri,
  3. Map<String, String> headers = const {},
  4. dynamic body,
  5. Duration? timeout,
  6. ProgressCallback? onProgress,
  7. bool expectJsonArray = false,
  8. Map<String, dynamic>? queryParameters,
  9. Map<String, dynamic>? pathParams,
  10. CancelToken? cancelToken,
})

Implementation

RequestOptions({
  required this.method,
  required this.uri,
  this.headers = const {},
  this.body,
  this.timeout,
  this.onProgress,
  this.expectJsonArray = false,
  this.queryParameters,
  this.pathParams,
  this.cancelToken,
});