post<T> method
Future<Response<T>>
post<
T>( - String path, {
- dynamic data,
- Map<String, dynamic>? queryParameters,
- Options? options,
- CancelToken? cancelToken,
- ProgressCallback? onSendProgress,
- ProgressCallback? onReceiveProgress,
})
Implementation
Future<Response<T>> post<T>(String path,
{data,
Map<String, dynamic>? queryParameters,
Options? options,
CancelToken? cancelToken,
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress}) async {
_dio.options = await _getOptions();
return _dio.post<T>(path,
data: data,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken);
}