put method
Sends a PUT request to the specified path.
Implementation
Future<dynamic> put(
String path, {
dynamic data,
Map<String, dynamic>? queryParameters,
bool isFormData = false,
Options? options,
}) async {
try {
final response = await _dio.put(
path,
data: _prepareData(data, isFormData),
queryParameters: queryParameters,
options: options,
);
return response.data;
} on DioException catch (e) {
handleDioExceptions(e);
}
}