File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ Example:
50
50
final chopperClient = ChopperClient(
51
51
baseUrl: Uri.parse('https://example.com'),
52
52
interceptors: [
53
- oauthChopper.interceptor,
53
+ oauthChopper.interceptor() ,
54
54
],
55
55
);
56
56
Original file line number Diff line number Diff line change @@ -20,9 +20,8 @@ void main() {
20
20
/// Add the oauth authenticator and interceptor to the chopper client.
21
21
final chopperClient = ChopperClient (
22
22
baseUrl: Uri .parse ('https://example.com' ),
23
- authenticator: oauthChopper.authenticator (),
24
23
interceptors: [
25
- oauthChopper.interceptor,
24
+ oauthChopper.interceptor () ,
26
25
],
27
26
);
28
27
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ class OAuthChopper {
65
65
}
66
66
67
67
/// Provides an [OAuthInterceptor] instance.
68
+ /// If [onError] is provided exceptions will be passed to [onError] and not be
69
+ /// thrown.
68
70
OAuthInterceptor interceptor ({
69
71
OnErrorCallback ? onError,
70
72
}) =>
You can’t perform that action at this time.
0 commit comments