Skip to content

Instantly share code, notes, and snippets.

@Vanethos
Created September 5, 2019 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vanethos/2679df4ca80e7bc717025a100f5afa5d to your computer and use it in GitHub Desktop.
Save Vanethos/2679df4ca80e7bc717025a100f5afa5d to your computer and use it in GitHub Desktop.
Dio addInterceptors(Dio dio) {
return dio..interceptors.add(InterceptorsWrapper(
onRequest: (RequestOptions options) => requestInterceptor(options),
onResponse: (Response response) => responseInterceptor(response),
onError: (DioError dioError) => errorInterceptor(dioError)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment