post<T> method

  1. @override
Future<Response> post<T>(
  1. String path,
  2. Map<String, dynamic> body,
  3. HttpOptions? options
)
override

Implementation

@override
Future<Response> post<T>(
    String path, Map<String, dynamic> body, HttpOptions? options) async {
  try {
    final response = await client.post(path, data: body);
    return DioResponse<T>(
        response.headers.map, response.data, response.statusCode);
  } on dio.DioError catch (e) {
    throw DioHandleError(e).build();
  }
}