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