post method

Future<Response> post(
  1. String url, {
  2. dynamic body,
})

DIO POST take url, concrete route

Implementation

Future<Response> post(String url, {body}) async =>
    await dio.post(url, data: body).then((response) {
      return response;
    }).catchError((error) {
      handleError(error, _decoder);
    });