Skip to content

Commit 1ea5765

Browse files
author
Bas de Vaan
committed
named parameters
1 parent a8fc9e9 commit 1ea5765

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/src/oauth_grant.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class ClientCredentialsGrant extends OAuthGrant {
4343

4444
/// Obtains credentials using a [authorization code grant](https://tools.ietf.org/html/rfc6749#section-1.3.1).
4545
class AuthorizationCodeGrant extends OAuthGrant {
46-
const AuthorizationCodeGrant(
47-
this.tokenEndpoint,
48-
this.scopes,
49-
this.redirectUrl,
50-
this.redirect,
51-
this.listen,
52-
);
46+
const AuthorizationCodeGrant({
47+
required this.tokenEndpoint,
48+
required this.scopes,
49+
required this.redirectUrl,
50+
required this.redirect,
51+
required this.listen,
52+
});
5353

5454
final Uri tokenEndpoint;
5555
final Uri redirectUrl;

0 commit comments

Comments
 (0)