patch<T> method

Future<APIResponse<T>> patch<T>(
  1. String target, {
  2. Map<String, dynamic>? data,
  3. List<MultipartFile> files = const [],
  4. dynamic onFilesUpload(
    1. int bytes,
    2. int totalBytes
    )?,
  5. bool? log,
  6. Map<String, String> headers = const {},
  7. bool appendHeader = true,
  8. String errorsField = 'errors',
  9. Encoding? encoding,
})

Implementation

Future<APIResponse<T>> patch<T>(
  String target, {
  Map<String, dynamic>? data,
  List<http.MultipartFile> files = const [],
  Function(int bytes, int totalBytes)? onFilesUpload,
  bool? log,
  Map<String, String> headers = const {},
  bool appendHeader = true,
  String errorsField = 'errors',
  Encoding? encoding,
}) =>
    request<T>(
      target,
      RequestType.patch,
      data: data,
      files: files,
      onFilesUpload: onFilesUpload,
      log: log,
      headers: headers,
      errorsField: errorsField,
      encoding: encoding,
    );