copyWith method

  1. @override
OAuthConfiguration copyWith({
  1. String? authorizationEndpointUrl,
  2. String? tokenEndpointUrl,
  3. String? redirectUrl,
  4. String? baseUrl,
  5. String? clientId,
  6. String? clientSecret,
  7. String? delimiter,
  8. bool? basicAuth,
  9. Client? httpClient,
  10. List<String>? scopes,
  11. String? loginHint,
  12. List<String>? promptValues,
  13. ValueChanged<Credentials>? onSuccessAuth,
  14. String? initialUrl,
  15. List<String>? redirectUrls,
  16. ValueChanged<String>? onSuccessRedirect,
  17. ValueChanged? onError,
  18. VoidCallback? onCancel,
  19. CertificateValidator? onCertificateValidate,
  20. Map<String, String>? headers,
  21. Stream<String>? urlStream,
  22. ThemeData? themeData,
  23. Map<String, String>? textLocales,
  24. Locale? contentLocale,
  25. bool? goBackBtnVisible,
  26. bool? goForwardBtnVisible,
  27. bool? refreshBtnVisible,
  28. bool? clearCacheBtnVisible,
  29. bool? closeBtnVisible,
})
override

Implementation

@override
OAuthConfiguration copyWith({
  String? authorizationEndpointUrl,
  String? tokenEndpointUrl,
  String? redirectUrl,
  String? baseUrl,
  String? clientId,
  String? clientSecret,
  String? delimiter,
  bool? basicAuth,
  http.Client? httpClient,
  List<String>? scopes,
  String? loginHint,
  List<String>? promptValues,
  ValueChanged<oauth2.Credentials>? onSuccessAuth,
  String? initialUrl,
  List<String>? redirectUrls,
  ValueChanged<String>? onSuccessRedirect,
  ValueChanged<dynamic>? onError,
  VoidCallback? onCancel,
  CertificateValidator? onCertificateValidate,
  Map<String, String>? headers,
  Stream<String>? urlStream,
  ThemeData? themeData,
  Map<String, String>? textLocales,
  Locale? contentLocale,
  bool? goBackBtnVisible,
  bool? goForwardBtnVisible,
  bool? refreshBtnVisible,
  bool? clearCacheBtnVisible,
  bool? closeBtnVisible,
}) =>
    OAuthConfiguration._(
      authorizationEndpointUrl:
          authorizationEndpointUrl ?? this.authorizationEndpointUrl,
      tokenEndpointUrl: tokenEndpointUrl ?? this.tokenEndpointUrl,
      redirectUrl: redirectUrl ?? this.redirectUrl,
      baseUrl: baseUrl ?? this.baseUrl,
      clientId: clientId ?? this.clientId,
      clientSecret: clientSecret ?? this.clientSecret,
      delimiter: delimiter ?? this.delimiter,
      basicAuth: basicAuth ?? this.basicAuth,
      httpClient: httpClient ?? this.httpClient,
      scopes: scopes ?? this.scopes,
      loginHint: loginHint ?? this.loginHint,
      promptValues: promptValues ?? this.promptValues,
      onSuccessAuth: onSuccessAuth ?? this.onSuccessAuth,
      initialUrl: initialUrl ?? this.initialUrl,
      redirectUrls: redirectUrls ?? this.redirectUrls,
      onSuccessRedirect: onSuccessRedirect ?? this.onSuccessRedirect,
      onError: onError ?? this.onError,
      onCancel: onCancel ?? this.onCancel,
      onCertificateValidate:
          onCertificateValidate ?? this.onCertificateValidate,
      headers: headers ?? this.headers,
      urlStream: urlStream ?? this.urlStream,
      themeData: themeData ?? this.themeData,
      textLocales: textLocales ?? this.textLocales,
      contentLocale: contentLocale ?? this.contentLocale,
      goBackBtnVisible: goBackBtnVisible ?? this.goBackBtnVisible,
      goForwardBtnVisible: goForwardBtnVisible ?? this.goForwardBtnVisible,
      refreshBtnVisible: refreshBtnVisible ?? this.refreshBtnVisible,
      clearCacheBtnVisible: clearCacheBtnVisible ?? this.clearCacheBtnVisible,
      closeBtnVisible: closeBtnVisible ?? this.closeBtnVisible,
    );