multipartField method

MethodWithBody multipartField(
  1. String field,
  2. dynamic value
)

Implementation

MethodWithBody multipartField(String field, value) {
  if (_body is! Map<String, Multipart>) {
    _body = <String, Multipart>{};
  }
  if (value != null) {
    _body[field] = MultipartString(value!.toString());
  }
  return this;
}