post method

Future<Response> post(
  1. String path, {
  2. dynamic data,
  3. Map<String, dynamic>? queryParameters,
})

Implementation

Future<Response> post(String path,
    {dynamic data, Map<String, dynamic>? queryParameters}) async {
  try {
    final response =
        await _dio.post(path, data: data, queryParameters: queryParameters);
    return response;
  } catch (e) {
    rethrow;
  }
}