patch<T> method

Future<ResponseModel<T>> patch<T>(
  1. String path, {
  2. Map<String, dynamic>? params,
  3. Object? data,
  4. Options? options,
  5. ProgressCallback? onSendProgress,
  6. ProgressCallback? onReceiveProgress,
  7. CancelToken? cancelToken,
})

patch

Implementation

Future<ResponseModel<T>> patch<T>(
  String path, {
  Map<String, dynamic>? params,
  Object? data,
  Options? options,
  ProgressCallback? onSendProgress,
  ProgressCallback? onReceiveProgress,
  CancelToken? cancelToken,
}) async {
  _dio ??= _createDio(this.options);
  if (options != null) _dio!.options = _dio!.options.mergeOptions(options);
  return await _handle<T>(
      _dio!.patch<T>(path,
          onSendProgress: onSendProgress,
          onReceiveProgress: onReceiveProgress,
          queryParameters: params,
          options: options,
          data: data,
          cancelToken: cancelToken ?? _cancelToken),
      baseOptions: dio!.options);
}