Created
May 2, 2021 06:34
-
-
Save namphho/595cd34c936b0a9dfcca15049654ff2a to your computer and use it in GitHub Desktop.
dio interceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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