multipartStringFile method

MethodWithBody multipartStringFile(
  1. String field,
  2. String? value, {
  3. String? filename,
  4. MediaType? contentType,
})

Implementation

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