ADB2CEmbedWebView constructor
const
ADB2CEmbedWebView({
- Key? key,
- required String tenantBaseUrl,
- required String clientId,
- required String redirectUrl,
- required String userFlowName,
- required List<
String> scopes, - required ValueChanged<
Token> onAccessToken, - required ValueChanged<
Token> onIDToken, - required ValueChanged<
Token> onRefreshToken, - required List<
OptionalParam> optionalParameters, - dynamic onRedirect(
- BuildContext context
- dynamic onErrorOrCancel(
- BuildContext context
- ValueChanged<
Token> ? onAnyTokenRetrieved, - Widget? loadingReplacement,
- Color webViewBackgroundColor = const Color(0x00000000),
- String? userAgent,
- String responseType = Constants.defaultResponseType,
Implementation
const ADB2CEmbedWebView({
super.key,
// Required to work
required this.tenantBaseUrl,
required this.clientId,
required this.redirectUrl,
required this.userFlowName,
required this.scopes,
required this.onAccessToken,
required this.onIDToken,
required this.onRefreshToken,
required this.optionalParameters,
// Optionals
this.onRedirect,
this.onErrorOrCancel,
this.onAnyTokenRetrieved,
this.loadingReplacement,
this.webViewBackgroundColor = const Color(0x00000000),
this.userAgent,
// Optionals with default value
this.responseType = Constants.defaultResponseType,
});