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 |
Beta Was this translation helpful? Give feedback.
Answered by
AlexV525
Mar 6, 2023
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
carlosriveroib
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
return
s are invalid here.Interceptor
, these two are equal at present.