Future<Response> custom() { var response = DioManager().dio.request(path, data: param, options: opt); return response.then((e) => e, onError: (e) { networkError(e); return Future.error(e); }); }