post<T> method

Future post<T>(
  1. dynamic path, {
  2. Map? data,
  3. Options? options,
})

Implementation

Future post<T>(path, {Map? data, Options? options}) async {
  try {
    Response response =
        await Dio(baseOptions).post(path, data: data, options: options);
    return hanleData<T>(response);
  } on DioError catch (e) {
    createErrorEntity(e);
  }
}