Multipart constructor

const Multipart()

Defines a multipart request.

@Post(path: '/')
@Multipart()
Future<Response> create(@Part() String name);

Use Part annotation to send simple data. Use PartFile annotation to send File or List<int>.

Implementation

const Multipart();