copyWith method

OAuthClientConfig copyWith({
  1. String? clientId,
  2. String? clientSecret,
  3. String? authorizationEndpoint,
  4. String? tokenEndpoint,
  5. bool? noPkce,
  6. List<String>? scopes,
})

Implementation

OAuthClientConfig copyWith({
  String? clientId,
  String? clientSecret,
  String? authorizationEndpoint,
  String? tokenEndpoint,
  bool? noPkce,
  List<String>? scopes,
}) {
  return OAuthClientConfig(
    clientId: clientId ?? this.clientId,
    clientSecret: clientSecret ?? this.clientSecret,
    authorizationEndpoint: authorizationEndpoint ?? this.authorizationEndpoint,
    tokenEndpoint: tokenEndpoint ?? this.tokenEndpoint,
    noPkce: noPkce ?? this.noPkce,
    scopes: scopes ?? this.scopes,
  );
}