Skip to content

Instantly share code, notes, and snippets.

@namphho
Created May 2, 2021 06:34
Show Gist options
  • Save namphho/595cd34c936b0a9dfcca15049654ff2a to your computer and use it in GitHub Desktop.
Save namphho/595cd34c936b0a9dfcca15049654ff2a to your computer and use it in GitHub Desktop.
dio interceptor
import 'package:dio/dio.dart';
class AuthenticationInterceptor extends Interceptor{
@override
Future onRequest(RequestOptions options) {
return super.onRequest(options);
}
@override
Future onError(DioError err) {
return super.onError(err);
}
@override
Future onResponse(Response response) {
return super.onResponse(response);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment