errorListner function

dynamic errorListner({
  1. dynamic apiname,
  2. dynamic request,
  3. dynamic responsed,
  4. dynamic app_error,
})

Implementation

errorListner({apiname, request, responsed, app_error}) async {
  http.Response response =
      await http.post(Uri.parse('${SDK_BASE_URL}app_log'), body: {
    "apiname": '${SDK_BASE_URL}${apiname}',
    "token": SignUpController.currentUserToken,
    "request": request,
    "response": responsed,
    "app_error": app_error
  });
  var decodedResponse = json.decode(response.body);
}