post method

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

Implementation

Future<Response> post(String path, {dynamic data}) async {
  try {
    final response = await _dio.post(path, data: data);
    return response;
  } on DioException catch (e) {
    throw _handleError(e);
  }
}