Use this annotation on a service method param when you want to directly control the request body
of a POST/PUT request (instead of sending in as request parameters or form-style request
body).
Use this annotation on a service method param when you want to add individual fields
to the request body without defining a complete DTO class. This is useful when you
need to include additional fields in the request body alongside existing data, or when
you only need to send a few specific fields without creating a full data transfer object.
Annotation for cancelling the request.
When applied to a parameter, allows the method to accept a CancelToken
that can be used to cancel the HTTP request.
Annotation for tracking download progress.
When applied to a parameter, allows the method to accept a callback
function that will be invoked with progress updates during data reception.
Annotation for tracking upload progress.
When applied to a parameter, allows the method to accept a callback
function that will be invoked with progress updates during data transmission.
Extra data that will be passed to Dio's request, response, transformer, and interceptors.
Extend TypedExtras and define fields that correspond to the keys passed into extras.
The values of these fields will be derived from the data passed into your subclass.