copyWith method

Config copyWith({
  1. String? tenant,
  2. String? policy,
  3. String? clientId,
  4. String? responseType,
  5. String? redirectUri,
  6. String? scope,
  7. bool? webUseRedirect,
  8. String? responseMode,
  9. String? state,
  10. String? prompt,
  11. String? codeChallenge,
  12. String? codeChallengeMethod,
  13. String? nonce,
  14. String? tokenIdentifier,
  15. String? clientSecret,
  16. String? resource,
  17. bool? isB2C,
  18. String? customAuthorizationUrl,
  19. String? customTokenUrl,
  20. String? customDomainUrlWithTenantId,
  21. String? loginHint,
  22. String? domainHint,
  23. String? codeVerifier,
  24. String? userAgent,
  25. bool? isStub,
  26. Widget? loader,
  27. AndroidOptions? aOptions,
  28. CacheLocation? cacheLocation,
  29. GlobalKey<NavigatorState>? navigatorKey,
  30. String? origin,
  31. Map<String, String>? customParameters,
  32. String? postLogoutRedirectUri,
  33. PreferredSizeWidget? appBar,
  34. dynamic onPageFinished(
    1. String url
    )?,
})

Implementation

Config copyWith({
  String? tenant,
  String? policy,
  String? clientId,
  String? responseType,
  String? redirectUri,
  String? scope,
  bool? webUseRedirect,
  String? responseMode,
  String? state,
  String? prompt,
  String? codeChallenge,
  String? codeChallengeMethod,
  String? nonce,
  String? tokenIdentifier,
  String? clientSecret,
  String? resource,
  bool? isB2C,
  String? customAuthorizationUrl,
  String? customTokenUrl,
  String? customDomainUrlWithTenantId,
  String? loginHint,
  String? domainHint,
  String? codeVerifier,
  String? userAgent,
  bool? isStub,
  Widget? loader,
  AndroidOptions? aOptions,
  CacheLocation? cacheLocation,
  GlobalKey<NavigatorState>? navigatorKey,
  String? origin,
  Map<String, String>? customParameters,
  String? postLogoutRedirectUri,
  PreferredSizeWidget? appBar,
  Function(String url)? onPageFinished,
}) {
  return Config(
    tenant: tenant ?? this.tenant,
    policy: policy ?? this.policy,
    clientId: clientId ?? this.clientId,
    responseType: responseType ?? this.responseType,
    redirectUri: redirectUri ?? this.redirectUri,
    scope: scope ?? this.scope,
    webUseRedirect: webUseRedirect ?? this.webUseRedirect,
    responseMode: responseMode ?? this.responseMode,
    state: state ?? this.state,
    prompt: prompt ?? this.prompt,
    codeChallenge: codeChallenge ?? this.codeChallenge,
    codeChallengeMethod: codeChallengeMethod ?? this.codeChallengeMethod,
    nonce: nonce ?? this.nonce,
    tokenIdentifier: tokenIdentifier ?? this.tokenIdentifier,
    clientSecret: clientSecret ?? this.clientSecret,
    resource: resource ?? this.resource,
    isB2C: isB2C ?? this.isB2C,
    customAuthorizationUrl: customAuthorizationUrl ?? this.customAuthorizationUrl,
    customTokenUrl: customTokenUrl ?? this.customTokenUrl,
    customDomainUrlWithTenantId: customDomainUrlWithTenantId ?? this.customDomainUrlWithTenantId,
    loginHint: loginHint ?? this.loginHint,
    domainHint: domainHint ?? this.domainHint,
    codeVerifier: codeVerifier ?? this.codeVerifier,
    userAgent: userAgent ?? this.userAgent,
    isStub: isStub ?? this.isStub,
    loader: loader ?? this.loader,
    aOptions: aOptions ?? this.aOptions,
    cacheLocation: cacheLocation ?? this.cacheLocation,
    navigatorKey: navigatorKey ?? this.navigatorKey,
    origin: origin ?? this.origin,
    customParameters: customParameters ?? this.customParameters,
    postLogoutRedirectUri: postLogoutRedirectUri ?? this.postLogoutRedirectUri,
    appBar: appBar ?? this.appBar,
    onPageFinished: onPageFinished ?? this.onPageFinished,
  );
}