Flow.authorizationCode constructor

Flow.authorizationCode(
  1. Client client, {
  2. String? state,
  3. String? prompt,
  4. String? accessType,
  5. Uri? redirectUri,
  6. List<String> scopes = const ['openid', 'profile', 'email'],
})

Implementation

Flow.authorizationCode(Client client,
    {String? state,
    String? prompt,
    String? accessType,
    Uri? redirectUri,
    List<String> scopes = const ['openid', 'profile', 'email']})
    : this._(FlowType.authorizationCode, 'code', client,
          state: state,
          additionalParameters: {
            if (prompt != null) 'prompt': prompt,
            if (accessType != null) 'access_type': accessType,
          },
          scopes: scopes,
          redirectUri: redirectUri);