Difference between handler.next and super.onRequest() #1488
|
Hi, when creating an interceptor class class MyToken extends Interceptor {
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) async {
// difference here!!!
...
return handler.next(options);
// or
return super.onRequest(options, handler);
}
}Is there any difference? Thank you |
Answered by
AlexV525
Mar 6, 2023
Replies: 1 comment
|
0 replies
Answer selected by
carlosriveroib
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
returns are invalid here.Interceptor, these two are equal at present.