copyWith method
OAuthConfiguration
copyWith({
- String? authorizationEndpointUrl,
- String? tokenEndpointUrl,
- String? redirectUrl,
- String? baseUrl,
- String? clientId,
- String? clientSecret,
- String? delimiter,
- bool? basicAuth,
- Client? httpClient,
- List<
String> ? scopes, - String? loginHint,
- List<
String> ? promptValues, - ValueChanged<
Credentials> ? onSuccessAuth, - String? initialUrl,
- List<
String> ? redirectUrls, - ValueChanged<
String> ? onSuccessRedirect, - ValueChanged? 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,
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,
);