setBootpayMixedContentMode method
Configures the WebView's behavior when handling mixed content.
Implementation
Future<void> setBootpayMixedContentMode(BootpayMixedContentMode mode) {
final android_webview.MixedContentMode androidMode = switch (mode) {
BootpayMixedContentMode.alwaysAllow =>
android_webview.MixedContentMode.alwaysAllow,
BootpayMixedContentMode.compatibilityMode =>
android_webview.MixedContentMode.compatibilityMode,
BootpayMixedContentMode.neverAllow =>
android_webview.MixedContentMode.neverAllow,
};
return _webView.settings.setMixedContentMode(androidMode);
}