ADB2CEmbedWebView constructor

const ADB2CEmbedWebView({
  1. Key? key,
  2. required String tenantBaseUrl,
  3. required String clientId,
  4. required String redirectUrl,
  5. required String userFlowName,
  6. required List<String> scopes,
  7. required ValueChanged<Token> onAccessToken,
  8. required ValueChanged<Token> onIDToken,
  9. required ValueChanged<Token> onRefreshToken,
  10. required List<OptionalParam> optionalParameters,
  11. dynamic onRedirect(
    1. BuildContext context
    )?,
  12. dynamic onErrorOrCancel(
    1. BuildContext context
    )?,
  13. ValueChanged<Token>? onAnyTokenRetrieved,
  14. Widget? loadingReplacement,
  15. Color webViewBackgroundColor = const Color(0x00000000),
  16. String? userAgent,
  17. 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,
});