From 124d2ae0de194e4b155c1696eeae18c81f9928e1 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Mon, 8 Mar 2021 10:23:20 +0100 Subject: [PATCH] code formatting --- .../in_app_webview_controller.dart | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/src/in_app_webview/in_app_webview_controller.dart b/lib/src/in_app_webview/in_app_webview_controller.dart index 655426cd..33118654 100644 --- a/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/lib/src/in_app_webview/in_app_webview_controller.dart @@ -1908,7 +1908,8 @@ class InAppWebViewController { /// ///**Official iOS API**: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1537448-adduserscript Future addUserScript({required UserScript userScript}) async { - assert(_webview?.windowId == null || defaultTargetPlatform != TargetPlatform.iOS); + assert(_webview?.windowId == null || + defaultTargetPlatform != TargetPlatform.iOS); Map args = {}; args.putIfAbsent('userScript', () => userScript.toMap()); @@ -1924,7 +1925,8 @@ class InAppWebViewController { ///There isn't any way to add/remove user scripts specific to iOS window WebViews. ///This is a limitation of the native iOS WebKit APIs. Future addUserScripts({required List userScripts}) async { - assert(_webview?.windowId == null || defaultTargetPlatform != TargetPlatform.iOS); + assert(_webview?.windowId == null || + defaultTargetPlatform != TargetPlatform.iOS); for (var i = 0; i < userScripts.length; i++) { await addUserScript(userScript: userScripts[i]); @@ -1939,7 +1941,8 @@ class InAppWebViewController { ///There isn't any way to add/remove user scripts specific to iOS window WebViews. ///This is a limitation of the native iOS WebKit APIs. Future removeUserScript({required UserScript userScript}) async { - assert(_webview?.windowId == null || defaultTargetPlatform != TargetPlatform.iOS); + assert(_webview?.windowId == null || + defaultTargetPlatform != TargetPlatform.iOS); var index = _userScripts.indexOf(userScript); if (index == -1) { @@ -1962,7 +1965,8 @@ class InAppWebViewController { ///There isn't any way to add/remove user scripts specific to iOS window WebViews. ///This is a limitation of the native iOS WebKit APIs. Future removeUserScriptsByGroupName({required String groupName}) async { - assert(_webview?.windowId == null || defaultTargetPlatform != TargetPlatform.iOS); + assert(_webview?.windowId == null || + defaultTargetPlatform != TargetPlatform.iOS); Map args = {}; args.putIfAbsent('groupName', () => groupName); @@ -1977,7 +1981,8 @@ class InAppWebViewController { ///This is a limitation of the native iOS WebKit APIs. Future removeUserScripts( {required List userScripts}) async { - assert(_webview?.windowId == null || defaultTargetPlatform != TargetPlatform.iOS); + assert(_webview?.windowId == null || + defaultTargetPlatform != TargetPlatform.iOS); for (var i = 0; i < userScripts.length; i++) { await removeUserScript(userScript: userScripts[i]); @@ -1992,7 +1997,8 @@ class InAppWebViewController { /// ///**Official iOS API**: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1536540-removealluserscripts Future removeAllUserScripts() async { - assert(_webview?.windowId == null || defaultTargetPlatform != TargetPlatform.iOS); + assert(_webview?.windowId == null || + defaultTargetPlatform != TargetPlatform.iOS); _userScripts.clear(); Map args = {};