Flow.authorizationCode constructor

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

Implementation

Flow.authorizationCode(Client client,
    {String? state,
    String? prompt,
    String? accessType,
    Uri? redirectUri,
    Map<String, String>? additionalParameters,
    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,
            ...?additionalParameters
          },
          scopes: scopes,
          redirectUri: redirectUri);