setType method

MultipartBodyBuilder setType (
  1. MediaType type
)

Implementation

MultipartBodyBuilder setType(MediaType type) {
  if (type == null) {
    throw ArgumentError.notNull('type');
  }
  if (type.type() != 'multipart') {
    throw ArgumentError('${type.type()} != multipart');
  }
  _type = type;
  return this;
}