multipartFile method

MethodWithBody multipartFile(
  1. String field,
  2. List<int>? value, {
  3. String? filename,
  4. MediaType? contentType,
})

Implementation

MethodWithBody multipartFile(String field, List<int>? value,
    {String? filename, MediaType? contentType}) {
  if (_body is! Map<String, Multipart>) {
    _body = <String, Multipart>{};
  }
  if (value != null) {
    _body[field] =
        MultipartFile(value, filename: filename, contentType: contentType);
  }
  return this;
}