From 27a04bca54341c1e04d1396c5835ee00669d4e90 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 31 Jan 2024 14:19:54 +0100 Subject: [PATCH] added InAppWebViewControllerKeepAliveProps constructor parameters default value --- .../in_app_webview/in_app_webview_keep_alive.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_keep_alive.dart b/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_keep_alive.dart index 81dc56f20..cb7328de4 100644 --- a/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_keep_alive.dart +++ b/flutter_inappwebview_platform_interface/lib/src/in_app_webview/in_app_webview_keep_alive.dart @@ -31,12 +31,12 @@ class InAppWebViewControllerKeepAliveProps { Map devToolsProtocolEventListenerMap; InAppWebViewControllerKeepAliveProps( - {required this.javaScriptHandlersMap, - required this.userScripts, - required this.webMessageListenerObjNames, - required this.injectedScriptsFromURL, - required this.webMessageChannels, - required this.webMessageListeners, - required this.devToolsProtocolEventListenerMap + {this.javaScriptHandlersMap = const {}, + this.userScripts = const {}, + this.webMessageListenerObjNames = const {}, + this.injectedScriptsFromURL = const {}, + this.webMessageChannels = const {}, + this.webMessageListeners = const {}, + this.devToolsProtocolEventListenerMap = const {} }); }