updated _debugLog

This commit is contained in:
Lorenzo Pichilli 2022-04-27 01:11:09 +02:00
parent 1e6de69d20
commit a838c35089
1 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,6 @@ class InAppWebViewController
Set<String> _webMessageListenerObjNames = Set();
Map<String, ScriptHtmlTagAttributes> _injectedScriptsFromURL = {};
// ignore: unused_field
dynamic _id;
InAppBrowser? _inAppBrowser;
@ -109,8 +108,8 @@ class InAppWebViewController
if (WebView.debugLogging) {
String viewId = (getViewId() ?? _inAppBrowser?.id).toString();
String message =
(_inAppBrowser == null ? "WebView ID " : "InAppBrowser ID " + viewId) +
" calling \"" +
(_inAppBrowser == null ? "WebView" : "InAppBrowser")
+ " ID " + viewId + " calling \"" +
method.toString() + "\" using " + args.toString();
developer.log(message,
name: this.runtimeType.toString());