OAuth2Configuration constructor

const OAuth2Configuration({
  1. @JsonKey(name: 'client_id') required String clientId,
  2. @JsonKey(name: 'redirect_uri') required String redirectUri,
  3. required String scope,
  4. @JsonKey(name: 'state', includeIfNull: false) String? state,
  5. @JsonKey(name: 'code_challenge', includeIfNull: false) String? codeChallenge,
  6. @JsonKey(name: 'code_challenge_method', includeIfNull: false) String? codeChallengeMethod,
  7. @JsonKey(name: 'response_type', includeIfNull: false) String? responseType,
  8. String? customUriScheme,
})

Implementation

const factory OAuth2Configuration({
  @JsonKey(name: 'client_id') required String clientId,
  @JsonKey(name: 'redirect_uri') required String redirectUri,
  required String scope,
  @JsonKey(name: 'state', includeIfNull: false) String? state,
  @JsonKey(name: 'code_challenge', includeIfNull: false)
  String? codeChallenge,
  @JsonKey(name: 'code_challenge_method', includeIfNull: false)
  String? codeChallengeMethod,
  @JsonKey(name: 'response_type', includeIfNull: false) String? responseType,

  /// Needed for mobile platforms
  String? customUriScheme,
}) = _OAuth2Configuration;