From 34ddd2fa9519e9de39c8a0cf73e955b90a7590cc Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:17:00 -0500 Subject: [PATCH 01/15] add scrollmode --- .../webviewflutter/AndroidWebkitLibrary.g.kt | 60 ++++++++++++++++++- .../plugins/webviewflutter/ViewProxyApi.java | 15 +++++ .../plugins/webviewflutter/ViewTest.java | 11 ++++ .../lib/src/android_webkit.g.dart | 53 +++++++++++++++- .../pigeons/android_webkit.dart | 19 ++++++ .../webview_flutter_android/pubspec.yaml | 2 +- 6 files changed, 156 insertions(+), 4 deletions(-) diff --git a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt index f2808272548..60794a9e1f4 100644 --- a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt +++ b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Autogenerated from Pigeon (v22.5.0), do not edit directly. +// Autogenerated from Pigeon (v22.7.2), do not edit directly. // See also: https://pub.dev/packages/pigeon @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass", "SyntheticAccessor") @@ -571,6 +571,7 @@ private class AndroidWebkitLibraryPigeonProxyApiBaseCodec( value is String || value is FileChooserMode || value is ConsoleMessageLevel || + value is OverScrollMode || value == null) { super.writeValue(stream, value) return @@ -726,6 +727,29 @@ enum class ConsoleMessageLevel(val raw: Int) { } } +/** + * The over-scroll mode for a view. + * + * See https://developer.android.com/reference/android/view/View#OVER_SCROLL_ALWAYS. + */ +enum class OverScrollMode(val raw: Int) { + /** Always allow a user to over-scroll this view, provided it is a view that can scroll. */ + ALWAYS(0), + /** + * Allow a user to over-scroll this view only if the content is large enough to meaningfully + * scroll, provided it is a view that can scroll. + */ + IF_CONTENT_SCROLLS(1), + /** Never allow a user to over-scroll this view. */ + NEVER(2); + + companion object { + fun ofRaw(raw: Int): OverScrollMode? { + return values().firstOrNull { it.raw == raw } + } + } +} + private open class AndroidWebkitLibraryPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { @@ -735,6 +759,9 @@ private open class AndroidWebkitLibraryPigeonCodec : StandardMessageCodec() { 130.toByte() -> { return (readValue(buffer) as Long?)?.let { ConsoleMessageLevel.ofRaw(it.toInt()) } } + 131.toByte() -> { + return (readValue(buffer) as Long?)?.let { OverScrollMode.ofRaw(it.toInt()) } + } else -> super.readValueOfType(type, buffer) } } @@ -749,6 +776,10 @@ private open class AndroidWebkitLibraryPigeonCodec : StandardMessageCodec() { stream.write(130) writeValue(stream, value.raw) } + is OverScrollMode -> { + stream.write(131) + writeValue(stream, value.raw) + } else -> super.writeValue(stream, value) } } @@ -4397,6 +4428,9 @@ abstract class PigeonApiView( /** Return the scrolled position of this view. */ abstract fun getScrollPosition(pigeon_instance: android.view.View): WebViewPoint + /** Set the over-scroll mode for this view. */ + abstract fun setOverScrollMode(pigeon_instance: android.view.View, mode: OverScrollMode) + companion object { @Suppress("LocalVariableName") fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, api: PigeonApiView?) { @@ -4469,6 +4503,30 @@ abstract class PigeonApiView( channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.webview_flutter_android.View.setOverScrollMode", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val pigeon_instanceArg = args[0] as android.view.View + val modeArg = args[1] as OverScrollMode + val wrapped: List = + try { + api.setOverScrollMode(pigeon_instanceArg, modeArg) + listOf(null) + } catch (exception: Throwable) { + wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } } } diff --git a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ViewProxyApi.java b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ViewProxyApi.java index e5efbd15f81..0abdc38a6b2 100644 --- a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ViewProxyApi.java +++ b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ViewProxyApi.java @@ -34,4 +34,19 @@ public void scrollBy(@NonNull View pigeon_instance, long x, long y) { public WebViewPoint getScrollPosition(@NonNull View pigeon_instance) { return new WebViewPoint(pigeon_instance.getScrollX(), pigeon_instance.getScrollY()); } + + @Override + public void setOverScrollMode(@NonNull View pigeon_instance, @NonNull OverScrollMode mode) { + switch (mode) { + case ALWAYS: + pigeon_instance.setOverScrollMode(View.OVER_SCROLL_ALWAYS); + break; + case IF_CONTENT_SCROLLS: + pigeon_instance.setOverScrollMode(View.OVER_SCROLL_IF_CONTENT_SCROLLS); + break; + case NEVER: + pigeon_instance.setOverScrollMode(View.OVER_SCROLL_NEVER); + break; + } + } } diff --git a/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/ViewTest.java b/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/ViewTest.java index 2ae41983d44..4f806e5812d 100644 --- a/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/ViewTest.java +++ b/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/ViewTest.java @@ -49,4 +49,15 @@ public void getScrollPosition() { assertEquals(value.getX(), api.getScrollPosition(instance).getX()); assertEquals(value.getY(), api.getScrollPosition(instance).getY()); } + + @Test + public void setOverScrollMode() { + final PigeonApiView api = new TestProxyApiRegistrar().getPigeonApiView(); + + final View instance = mock(View.class); + final OverScrollMode mode = io.flutter.plugins.webviewflutter.OverScrollMode.ALWAYS; + api.setOverScrollMode(instance, mode); + + verify(instance).setOverScrollMode(View.OVER_SCROLL_ALWAYS); + } } diff --git a/packages/webview_flutter/webview_flutter_android/lib/src/android_webkit.g.dart b/packages/webview_flutter/webview_flutter_android/lib/src/android_webkit.g.dart index fc7174a27d0..a3ca1f72a9b 100644 --- a/packages/webview_flutter/webview_flutter_android/lib/src/android_webkit.g.dart +++ b/packages/webview_flutter/webview_flutter_android/lib/src/android_webkit.g.dart @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Autogenerated from Pigeon (v22.5.0), do not edit directly. +// Autogenerated from Pigeon (v22.7.2), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers @@ -53,7 +53,6 @@ abstract class PigeonInternalProxyApiBaseClass { final BinaryMessenger? pigeon_binaryMessenger; /// Maintains instances stored to communicate with native language objects. - @protected final PigeonInstanceManager pigeon_instanceManager; /// Instantiates and returns a functionally identical object to oneself. @@ -503,6 +502,22 @@ enum ConsoleMessageLevel { unknown, } +/// The over-scroll mode for a view. +/// +/// See https://developer.android.com/reference/android/view/View#OVER_SCROLL_ALWAYS. +enum OverScrollMode { + /// Always allow a user to over-scroll this view, provided it is a view that + /// can scroll. + always, + + /// Allow a user to over-scroll this view only if the content is large enough + /// to meaningfully scroll, provided it is a view that can scroll. + ifContentScrolls, + + /// Never allow a user to over-scroll this view. + never, +} + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -516,6 +531,9 @@ class _PigeonCodec extends StandardMessageCodec { } else if (value is ConsoleMessageLevel) { buffer.putUint8(130); writeValue(buffer, value.index); + } else if (value is OverScrollMode) { + buffer.putUint8(131); + writeValue(buffer, value.index); } else { super.writeValue(buffer, value); } @@ -530,6 +548,9 @@ class _PigeonCodec extends StandardMessageCodec { case 130: final int? value = readValue(buffer) as int?; return value == null ? null : ConsoleMessageLevel.values[value]; + case 131: + final int? value = readValue(buffer) as int?; + return value == null ? null : OverScrollMode.values[value]; default: return super.readValueOfType(type, buffer); } @@ -5862,6 +5883,34 @@ class View extends PigeonInternalProxyApiBaseClass { } } + /// Set the over-scroll mode for this view. + Future setOverScrollMode(OverScrollMode mode) async { + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _pigeonVar_codecView; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = + 'dev.flutter.pigeon.webview_flutter_android.View.setOverScrollMode'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, mode]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + @override View pigeon_copy() { return View.pigeon_detached( diff --git a/packages/webview_flutter/webview_flutter_android/pigeons/android_webkit.dart b/packages/webview_flutter/webview_flutter_android/pigeons/android_webkit.dart index 22435d5b97d..0f9a741e772 100644 --- a/packages/webview_flutter/webview_flutter_android/pigeons/android_webkit.dart +++ b/packages/webview_flutter/webview_flutter_android/pigeons/android_webkit.dart @@ -80,6 +80,22 @@ enum ConsoleMessageLevel { unknown, } +/// The over-scroll mode for a view. +/// +/// See https://developer.android.com/reference/android/view/View#OVER_SCROLL_ALWAYS. +enum OverScrollMode { + /// Always allow a user to over-scroll this view, provided it is a view that + /// can scroll. + always, + + /// Allow a user to over-scroll this view only if the content is large enough + /// to meaningfully scroll, provided it is a view that can scroll. + ifContentScrolls, + + /// Never allow a user to over-scroll this view. + never, +} + /// Encompasses parameters to the `WebViewClient.shouldInterceptRequest` method. /// /// See https://developer.android.com/reference/android/webkit/WebResourceRequest. @@ -757,6 +773,9 @@ abstract class View { /// Return the scrolled position of this view. WebViewPoint getScrollPosition(); + + /// Set the over-scroll mode for this view. + void setOverScrollMode(OverScrollMode mode); } /// A callback interface used by the host application to set the Geolocation diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml index 44f19b2af19..4203181cd8c 100644 --- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml @@ -27,7 +27,7 @@ dev_dependencies: flutter_test: sdk: flutter mockito: ^5.4.4 - pigeon: ^22.5.0 + pigeon: ^22.7.2 topics: - html From 4d3d0811eb8387d62fbeb2f1457541d124e0308f Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Fri, 31 Jan 2025 17:32:27 -0500 Subject: [PATCH 02/15] add platform updates --- .../webview_flutter/example/pubspec.yaml | 6 +++++ .../lib/src/webview_controller.dart | 5 +++++ .../webview_flutter/pubspec.yaml | 6 +++++ .../example/pubspec.yaml | 4 ++++ .../lib/src/android_webview_controller.dart | 22 +++++++++++++++++++ .../webview_flutter_android/pubspec.yaml | 4 ++++ .../lib/src/platform_webview_controller.dart | 7 ++++++ .../lib/src/types/over_scroll_mode.dart | 16 ++++++++++++++ .../lib/src/types/types.dart | 1 + .../platform_webview_controller_test.dart | 13 +++++++++++ .../webview_flutter_web/example/pubspec.yaml | 4 ++++ .../webview_flutter_web/pubspec.yaml | 4 ++++ .../example/pubspec.yaml | 4 ++++ .../lib/src/webkit_webview_controller.dart | 20 +++++++++++++++++ .../webview_flutter_wkwebview/pubspec.yaml | 4 ++++ 15 files changed, 120 insertions(+) create mode 100644 packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/over_scroll_mode.dart diff --git a/packages/webview_flutter/webview_flutter/example/pubspec.yaml b/packages/webview_flutter/webview_flutter/example/pubspec.yaml index e6152419a9a..d964e3ab605 100644 --- a/packages/webview_flutter/webview_flutter/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/example/pubspec.yaml @@ -36,3 +36,9 @@ flutter: - assets/sample_video.mp4 - assets/www/index.html - assets/www/styles/style.css +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_android: {path: ../../../../packages/webview_flutter/webview_flutter_android} + webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} + webview_flutter_wkwebview: {path: ../../../../packages/webview_flutter/webview_flutter_wkwebview} diff --git a/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart b/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart index 603f9cf4be3..e357d32ad7c 100644 --- a/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart +++ b/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart @@ -405,6 +405,11 @@ class WebViewController { ) { return platform.setOnScrollPositionChange(onScrollPositionChange); } + + /// Sets the over-scroll mode for the WebView. + Future setOverScrollMode(WebViewOverScrollMode mode) async { + return platform.setOverScrollMode(mode); + } } /// Permissions request when web content requests access to protected resources. diff --git a/packages/webview_flutter/webview_flutter/pubspec.yaml b/packages/webview_flutter/webview_flutter/pubspec.yaml index 837800d7fee..323cb0e1022 100644 --- a/packages/webview_flutter/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/pubspec.yaml @@ -36,3 +36,9 @@ topics: - html - webview - webview-flutter +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_android: {path: ../../../packages/webview_flutter/webview_flutter_android} + webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} + webview_flutter_wkwebview: {path: ../../../packages/webview_flutter/webview_flutter_wkwebview} diff --git a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml index c22d7dc7022..bce58acf18b 100644 --- a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml @@ -33,3 +33,7 @@ flutter: - assets/sample_video.mp4 - assets/www/index.html - assets/www/styles/style.css +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart b/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart index 7dc1c797376..6a827ca8460 100644 --- a/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart +++ b/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart @@ -731,6 +731,28 @@ class AndroidWebViewController extends PlatformWebViewController { _onJavaScriptPrompt = onJavaScriptTextInputDialog; return _webChromeClient.setSynchronousReturnValueForOnJsPrompt(true); } + + @override + Future setOverScrollMode(WebViewOverScrollMode mode) async { + switch (mode) { + case WebViewOverScrollMode.always: + return _webView.setOverScrollMode( + android_webview.OverScrollMode.always, + ); + case WebViewOverScrollMode.ifContentScrolls: + return _webView.setOverScrollMode( + android_webview.OverScrollMode.ifContentScrolls, + ); + case WebViewOverScrollMode.never: + return _webView.setOverScrollMode( + android_webview.OverScrollMode.never, + ); + // This prevents future additions from causing a breaking change. + // ignore: unreachable_switch_case + case _: + throw UnsupportedError('Android does not support $mode.'); + } + } } /// Android implementation of [PlatformWebViewPermissionRequest]. diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml index c7b7c00ce1d..846ea489833 100644 --- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml @@ -33,3 +33,7 @@ topics: - html - webview - webview-flutter +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_controller.dart b/packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_controller.dart index 2aaabb519cc..34b68a02dfc 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_controller.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_controller.dart @@ -324,6 +324,13 @@ abstract class PlatformWebViewController extends PlatformInterface { 'setOnJavaScriptTextInputDialog is not implemented on the current platform', ); } + + /// Sets the over-scroll mode for the WebView. + Future setOverScrollMode(WebViewOverScrollMode mode) async { + throw UnimplementedError( + 'setOverScrollMode is not implemented on the current platform', + ); + } } /// Describes the parameters necessary for registering a JavaScript channel. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/over_scroll_mode.dart b/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/over_scroll_mode.dart new file mode 100644 index 00000000000..0dc4d742a33 --- /dev/null +++ b/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/over_scroll_mode.dart @@ -0,0 +1,16 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// Defines the over-scroll behavior of a WebView. +enum WebViewOverScrollMode { + /// Always allow a user to over-scroll the WebView. + always, + + /// Allow a user to over-scroll the WebView only if the content is large + /// enough to meaningfully scroll. + ifContentScrolls, + + /// Never allow a user to over-scroll the WebView. + never, +} diff --git a/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/types.dart b/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/types.dart index ec6c0bc2c47..937b44a13a8 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/types.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/types.dart @@ -12,6 +12,7 @@ export 'javascript_mode.dart'; export 'load_request_params.dart'; export 'navigation_decision.dart'; export 'navigation_request.dart'; +export 'over_scroll_mode.dart'; export 'platform_navigation_delegate_creation_params.dart'; export 'platform_webview_controller_creation_params.dart'; export 'platform_webview_cookie_manager_creation_params.dart'; diff --git a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart index db3cf1dd5d6..7ef8343b0d4 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart @@ -457,6 +457,19 @@ void main() { throwsUnimplementedError, ); }); + + test( + 'Default implementation of setOverScrollMode should throw unimplemented error', + () { + final PlatformWebViewController controller = + ExtendsPlatformWebViewController( + const PlatformWebViewControllerCreationParams()); + + expect( + () => controller.setOverScrollMode(WebViewOverScrollMode.always), + throwsUnimplementedError, + ); + }); } class MockWebViewPlatformWithMixin extends MockWebViewPlatform diff --git a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml index 55e7e655326..e1d954eaf09 100644 --- a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml @@ -29,3 +29,7 @@ dev_dependencies: flutter: uses-material-design: true +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_web/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/pubspec.yaml index 9d5a5ef616b..b8fa1d1b179 100644 --- a/packages/webview_flutter/webview_flutter_web/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/pubspec.yaml @@ -34,3 +34,7 @@ topics: - html - webview - webview-flutter +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml index 051e60afa66..13f7918b267 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml @@ -32,3 +32,7 @@ flutter: - assets/sample_video.mp4 - assets/www/index.html - assets/www/styles/style.css +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart b/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart index 3856964326d..7f6d60f0aef 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart @@ -749,6 +749,26 @@ window.addEventListener("error", function(e) { await controller.addUserScript(overrideScript); } + @override + Future setOverScrollMode(WebViewOverScrollMode mode) async { + switch (mode) { + case WebViewOverScrollMode.always: + return _webView.scrollView.setBounces(true); + case WebViewOverScrollMode.ifContentScrolls: + await Future.wait(>[ + _webView.scrollView.setBounces(true), + _webView.scrollView.setAlwaysBounceHorizontal(false), + _webView.scrollView.setAlwaysBounceVertical(false), + ]); + case WebViewOverScrollMode.never: + return _webView.scrollView.setBounces(false); + // This prevents future additions from causing a breaking change. + // ignore: unreachable_switch_case + case _: + throw UnsupportedError('Android does not support $mode.'); + } + } + // WKWebView does not support removing a single user script, so all user // scripts and all message handlers are removed instead. And the JavaScript // channels that shouldn't be removed are re-registered. Note that this diff --git a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml index efb1fb149d8..84069aedb0d 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml @@ -38,3 +38,7 @@ topics: - html - webview - webview-flutter +# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. +# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins +dependency_overrides: + webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} From 01da228bc427422f4ada39ebd60b389a720d7f34 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Tue, 4 Feb 2025 11:21:48 -0500 Subject: [PATCH 03/15] fix docs --- .../lib/src/webkit_webview_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart b/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart index 7f6d60f0aef..c2db4231e87 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart @@ -765,7 +765,7 @@ window.addEventListener("error", function(e) { // This prevents future additions from causing a breaking change. // ignore: unreachable_switch_case case _: - throw UnsupportedError('Android does not support $mode.'); + throw UnsupportedError('This platform does not support $mode.'); } } From acb1363650b5a5ce7e36b5a609e047bef84d9b95 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Mon, 7 Apr 2025 17:48:47 -0400 Subject: [PATCH 04/15] update mocks and add webview flutter test --- .../legacy/webview_flutter_test.mocks.dart | 223 +++--------- .../test/navigation_delegate_test.mocks.dart | 141 +++----- .../test/webview_controller_test.dart | 16 + .../test/webview_controller_test.mocks.dart | 334 ++++++------------ .../webview_cookie_manager_test.mocks.dart | 18 +- .../test/webview_widget_test.mocks.dart | 304 +++++----------- 6 files changed, 315 insertions(+), 721 deletions(-) diff --git a/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart index ff3f06b0e65..7a3c4d583a9 100644 --- a/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter/test/legacy/webview_flutter_test.dart. // Do not manually edit this file. @@ -29,19 +29,15 @@ import 'package:webview_flutter_platform_interface/src/legacy/types/types.dart' // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class class _FakeWidget_0 extends _i1.SmartFake implements _i2.Widget { - _FakeWidget_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i3.DiagnosticLevel? minLevel = _i3.DiagnosticLevel.info}) => @@ -67,41 +63,30 @@ class MockWebViewPlatform extends _i1.Mock implements _i4.WebViewPlatform { Set<_i3.Factory<_i8.OneSequenceGestureRecognizer>>? gestureRecognizers, }) => (super.noSuchMethod( - Invocation.method( - #build, - [], - { + Invocation.method(#build, [], { + #context: context, + #creationParams: creationParams, + #webViewPlatformCallbacksHandler: webViewPlatformCallbacksHandler, + #javascriptChannelRegistry: javascriptChannelRegistry, + #onWebViewPlatformCreated: onWebViewPlatformCreated, + #gestureRecognizers: gestureRecognizers, + }), + returnValue: _FakeWidget_0( + this, + Invocation.method(#build, [], { #context: context, #creationParams: creationParams, #webViewPlatformCallbacksHandler: webViewPlatformCallbacksHandler, #javascriptChannelRegistry: javascriptChannelRegistry, #onWebViewPlatformCreated: onWebViewPlatformCreated, #gestureRecognizers: gestureRecognizers, - }, - ), - returnValue: _FakeWidget_0( - this, - Invocation.method( - #build, - [], - { - #context: context, - #creationParams: creationParams, - #webViewPlatformCallbacksHandler: webViewPlatformCallbacksHandler, - #javascriptChannelRegistry: javascriptChannelRegistry, - #onWebViewPlatformCreated: onWebViewPlatformCreated, - #gestureRecognizers: gestureRecognizers, - }, - ), + }), ), ) as _i2.Widget); @override _i9.Future clearCookies() => (super.noSuchMethod( - Invocation.method( - #clearCookies, - [], - ), + Invocation.method(#clearCookies, []), returnValue: _i9.Future.value(false), ) as _i9.Future); } @@ -117,52 +102,30 @@ class MockWebViewPlatformController extends _i1.Mock @override _i9.Future loadFile(String? absoluteFilePath) => (super.noSuchMethod( - Invocation.method( - #loadFile, - [absoluteFilePath], - ), + Invocation.method(#loadFile, [absoluteFilePath]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future loadFlutterAsset(String? key) => (super.noSuchMethod( - Invocation.method( - #loadFlutterAsset, - [key], - ), + Invocation.method(#loadFlutterAsset, [key]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override - _i9.Future loadHtmlString( - String? html, { - String? baseUrl, - }) => + _i9.Future loadHtmlString(String? html, {String? baseUrl}) => (super.noSuchMethod( - Invocation.method( - #loadHtmlString, - [html], - {#baseUrl: baseUrl}, - ), + Invocation.method(#loadHtmlString, [html], {#baseUrl: baseUrl}), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override - _i9.Future loadUrl( - String? url, - Map? headers, - ) => + _i9.Future loadUrl(String? url, Map? headers) => (super.noSuchMethod( - Invocation.method( - #loadUrl, - [ - url, - headers, - ], - ), + Invocation.method(#loadUrl, [url, headers]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @@ -170,10 +133,7 @@ class MockWebViewPlatformController extends _i1.Mock @override _i9.Future loadRequest(_i5.WebViewRequest? request) => (super.noSuchMethod( - Invocation.method( - #loadRequest, - [request], - ), + Invocation.method(#loadRequest, [request]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @@ -181,77 +141,53 @@ class MockWebViewPlatformController extends _i1.Mock @override _i9.Future updateSettings(_i5.WebSettings? setting) => (super.noSuchMethod( - Invocation.method( - #updateSettings, - [setting], - ), + Invocation.method(#updateSettings, [setting]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future currentUrl() => (super.noSuchMethod( - Invocation.method( - #currentUrl, - [], - ), + Invocation.method(#currentUrl, []), returnValue: _i9.Future.value(), ) as _i9.Future); @override _i9.Future canGoBack() => (super.noSuchMethod( - Invocation.method( - #canGoBack, - [], - ), + Invocation.method(#canGoBack, []), returnValue: _i9.Future.value(false), ) as _i9.Future); @override _i9.Future canGoForward() => (super.noSuchMethod( - Invocation.method( - #canGoForward, - [], - ), + Invocation.method(#canGoForward, []), returnValue: _i9.Future.value(false), ) as _i9.Future); @override _i9.Future goBack() => (super.noSuchMethod( - Invocation.method( - #goBack, - [], - ), + Invocation.method(#goBack, []), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future goForward() => (super.noSuchMethod( - Invocation.method( - #goForward, - [], - ), + Invocation.method(#goForward, []), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future reload() => (super.noSuchMethod( - Invocation.method( - #reload, - [], - ), + Invocation.method(#reload, []), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future clearCache() => (super.noSuchMethod( - Invocation.method( - #clearCache, - [], - ), + Invocation.method(#clearCache, []), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @@ -259,25 +195,18 @@ class MockWebViewPlatformController extends _i1.Mock @override _i9.Future evaluateJavascript(String? javascript) => (super.noSuchMethod( - Invocation.method( - #evaluateJavascript, - [javascript], - ), - returnValue: _i9.Future.value(_i11.dummyValue( - this, - Invocation.method( - #evaluateJavascript, - [javascript], + Invocation.method(#evaluateJavascript, [javascript]), + returnValue: _i9.Future.value( + _i11.dummyValue( + this, + Invocation.method(#evaluateJavascript, [javascript]), ), - )), + ), ) as _i9.Future); @override _i9.Future runJavascript(String? javascript) => (super.noSuchMethod( - Invocation.method( - #runJavascript, - [javascript], - ), + Invocation.method(#runJavascript, [javascript]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @@ -285,100 +214,64 @@ class MockWebViewPlatformController extends _i1.Mock @override _i9.Future runJavascriptReturningResult(String? javascript) => (super.noSuchMethod( - Invocation.method( - #runJavascriptReturningResult, - [javascript], - ), - returnValue: _i9.Future.value(_i11.dummyValue( - this, - Invocation.method( - #runJavascriptReturningResult, - [javascript], + Invocation.method(#runJavascriptReturningResult, [javascript]), + returnValue: _i9.Future.value( + _i11.dummyValue( + this, + Invocation.method(#runJavascriptReturningResult, [javascript]), ), - )), + ), ) as _i9.Future); @override _i9.Future addJavascriptChannels(Set? javascriptChannelNames) => (super.noSuchMethod( - Invocation.method( - #addJavascriptChannels, - [javascriptChannelNames], - ), + Invocation.method(#addJavascriptChannels, [javascriptChannelNames]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future removeJavascriptChannels( - Set? javascriptChannelNames) => + Set? javascriptChannelNames, + ) => (super.noSuchMethod( - Invocation.method( - #removeJavascriptChannels, - [javascriptChannelNames], - ), + Invocation.method(#removeJavascriptChannels, [ + javascriptChannelNames, + ]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future getTitle() => (super.noSuchMethod( - Invocation.method( - #getTitle, - [], - ), + Invocation.method(#getTitle, []), returnValue: _i9.Future.value(), ) as _i9.Future); @override - _i9.Future scrollTo( - int? x, - int? y, - ) => - (super.noSuchMethod( - Invocation.method( - #scrollTo, - [ - x, - y, - ], - ), + _i9.Future scrollTo(int? x, int? y) => (super.noSuchMethod( + Invocation.method(#scrollTo, [x, y]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override - _i9.Future scrollBy( - int? x, - int? y, - ) => - (super.noSuchMethod( - Invocation.method( - #scrollBy, - [ - x, - y, - ], - ), + _i9.Future scrollBy(int? x, int? y) => (super.noSuchMethod( + Invocation.method(#scrollBy, [x, y]), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); @override _i9.Future getScrollX() => (super.noSuchMethod( - Invocation.method( - #getScrollX, - [], - ), + Invocation.method(#getScrollX, []), returnValue: _i9.Future.value(0), ) as _i9.Future); @override _i9.Future getScrollY() => (super.noSuchMethod( - Invocation.method( - #getScrollY, - [], - ), + Invocation.method(#getScrollY, []), returnValue: _i9.Future.value(0), ) as _i9.Future); } diff --git a/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart index 883191779cc..4b02c37ace2 100644 --- a/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter/test/navigation_delegate_test.dart. // Do not manually edit this file. @@ -26,6 +26,7 @@ import 'package:webview_flutter_platform_interface/src/webview_platform.dart' // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -36,43 +37,25 @@ class _FakePlatformWebViewCookieManager_0 extends _i1.SmartFake _FakePlatformWebViewCookieManager_0( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakePlatformNavigationDelegate_1 extends _i1.SmartFake implements _i3.PlatformNavigationDelegate { - _FakePlatformNavigationDelegate_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformNavigationDelegate_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformWebViewController_2 extends _i1.SmartFake implements _i4.PlatformWebViewController { - _FakePlatformWebViewController_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformWebViewController_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformWebViewWidget_3 extends _i1.SmartFake implements _i5.PlatformWebViewWidget { - _FakePlatformWebViewWidget_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformWebViewWidget_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformNavigationDelegateCreationParams_4 extends _i1.SmartFake @@ -80,10 +63,7 @@ class _FakePlatformNavigationDelegateCreationParams_4 extends _i1.SmartFake _FakePlatformNavigationDelegateCreationParams_4( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } /// A class which mocks [WebViewPlatform]. @@ -96,69 +76,49 @@ class MockWebViewPlatform extends _i1.Mock implements _i7.WebViewPlatform { @override _i2.PlatformWebViewCookieManager createPlatformCookieManager( - _i6.PlatformWebViewCookieManagerCreationParams? params) => + _i6.PlatformWebViewCookieManagerCreationParams? params, + ) => (super.noSuchMethod( - Invocation.method( - #createPlatformCookieManager, - [params], - ), + Invocation.method(#createPlatformCookieManager, [params]), returnValue: _FakePlatformWebViewCookieManager_0( this, - Invocation.method( - #createPlatformCookieManager, - [params], - ), + Invocation.method(#createPlatformCookieManager, [params]), ), ) as _i2.PlatformWebViewCookieManager); @override _i3.PlatformNavigationDelegate createPlatformNavigationDelegate( - _i6.PlatformNavigationDelegateCreationParams? params) => + _i6.PlatformNavigationDelegateCreationParams? params, + ) => (super.noSuchMethod( - Invocation.method( - #createPlatformNavigationDelegate, - [params], - ), + Invocation.method(#createPlatformNavigationDelegate, [params]), returnValue: _FakePlatformNavigationDelegate_1( this, - Invocation.method( - #createPlatformNavigationDelegate, - [params], - ), + Invocation.method(#createPlatformNavigationDelegate, [params]), ), ) as _i3.PlatformNavigationDelegate); @override _i4.PlatformWebViewController createPlatformWebViewController( - _i6.PlatformWebViewControllerCreationParams? params) => + _i6.PlatformWebViewControllerCreationParams? params, + ) => (super.noSuchMethod( - Invocation.method( - #createPlatformWebViewController, - [params], - ), + Invocation.method(#createPlatformWebViewController, [params]), returnValue: _FakePlatformWebViewController_2( this, - Invocation.method( - #createPlatformWebViewController, - [params], - ), + Invocation.method(#createPlatformWebViewController, [params]), ), ) as _i4.PlatformWebViewController); @override _i5.PlatformWebViewWidget createPlatformWebViewWidget( - _i6.PlatformWebViewWidgetCreationParams? params) => + _i6.PlatformWebViewWidgetCreationParams? params, + ) => (super.noSuchMethod( - Invocation.method( - #createPlatformWebViewWidget, - [params], - ), + Invocation.method(#createPlatformWebViewWidget, [params]), returnValue: _FakePlatformWebViewWidget_3( this, - Invocation.method( - #createPlatformWebViewWidget, - [params], - ), + Invocation.method(#createPlatformWebViewWidget, [params]), ), ) as _i5.PlatformWebViewWidget); } @@ -184,12 +144,10 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i8.Future setOnNavigationRequest( - _i3.NavigationRequestCallback? onNavigationRequest) => + _i3.NavigationRequestCallback? onNavigationRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnNavigationRequest, - [onNavigationRequest], - ), + Invocation.method(#setOnNavigationRequest, [onNavigationRequest]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @@ -197,10 +155,7 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i8.Future setOnPageStarted(_i3.PageEventCallback? onPageStarted) => (super.noSuchMethod( - Invocation.method( - #setOnPageStarted, - [onPageStarted], - ), + Invocation.method(#setOnPageStarted, [onPageStarted]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @@ -208,10 +163,7 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i8.Future setOnPageFinished(_i3.PageEventCallback? onPageFinished) => (super.noSuchMethod( - Invocation.method( - #setOnPageFinished, - [onPageFinished], - ), + Invocation.method(#setOnPageFinished, [onPageFinished]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @@ -219,10 +171,7 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i8.Future setOnHttpError(_i3.HttpResponseErrorCallback? onHttpError) => (super.noSuchMethod( - Invocation.method( - #setOnHttpError, - [onHttpError], - ), + Invocation.method(#setOnHttpError, [onHttpError]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @@ -230,22 +179,17 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i8.Future setOnProgress(_i3.ProgressCallback? onProgress) => (super.noSuchMethod( - Invocation.method( - #setOnProgress, - [onProgress], - ), + Invocation.method(#setOnProgress, [onProgress]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @override _i8.Future setOnWebResourceError( - _i3.WebResourceErrorCallback? onWebResourceError) => + _i3.WebResourceErrorCallback? onWebResourceError, + ) => (super.noSuchMethod( - Invocation.method( - #setOnWebResourceError, - [onWebResourceError], - ), + Invocation.method(#setOnWebResourceError, [onWebResourceError]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @@ -253,22 +197,17 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i8.Future setOnUrlChange(_i3.UrlChangeCallback? onUrlChange) => (super.noSuchMethod( - Invocation.method( - #setOnUrlChange, - [onUrlChange], - ), + Invocation.method(#setOnUrlChange, [onUrlChange]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); @override _i8.Future setOnHttpAuthRequest( - _i3.HttpAuthRequestCallback? onHttpAuthRequest) => + _i3.HttpAuthRequestCallback? onHttpAuthRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnHttpAuthRequest, - [onHttpAuthRequest], - ), + Invocation.method(#setOnHttpAuthRequest, [onHttpAuthRequest]), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); diff --git a/packages/webview_flutter/webview_flutter/test/webview_controller_test.dart b/packages/webview_flutter/webview_flutter/test/webview_controller_test.dart index 6cae01a4941..f0310415a85 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_controller_test.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_controller_test.dart @@ -492,6 +492,22 @@ void main() { .setOnScrollPositionChange(onScrollPositionChange), ); }); + + test('setOverScrollMode', () async { + final MockPlatformWebViewController mockPlatformWebViewController = + MockPlatformWebViewController(); + + final WebViewController webViewController = WebViewController.fromPlatform( + mockPlatformWebViewController, + ); + + await webViewController.setOverScrollMode(WebViewOverScrollMode.never); + verify( + mockPlatformWebViewController.setOverScrollMode( + WebViewOverScrollMode.never, + ), + ); + }); } class TestPlatformWebViewPermissionRequest diff --git a/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart index 981e7386ac0..0c4537103a5 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter/test/webview_controller_test.dart. // Do not manually edit this file. @@ -21,6 +21,7 @@ import 'package:webview_flutter_platform_interface/src/types/types.dart' as _i2; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -31,30 +32,17 @@ class _FakePlatformWebViewControllerCreationParams_0 extends _i1.SmartFake _FakePlatformWebViewControllerCreationParams_0( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakeObject_1 extends _i1.SmartFake implements Object { - _FakeObject_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeObject_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeOffset_2 extends _i1.SmartFake implements _i3.Offset { - _FakeOffset_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformNavigationDelegateCreationParams_3 extends _i1.SmartFake @@ -62,10 +50,7 @@ class _FakePlatformNavigationDelegateCreationParams_3 extends _i1.SmartFake _FakePlatformNavigationDelegateCreationParams_3( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } /// A class which mocks [PlatformWebViewController]. @@ -88,35 +73,22 @@ class MockPlatformWebViewController extends _i1.Mock @override _i5.Future loadFile(String? absoluteFilePath) => (super.noSuchMethod( - Invocation.method( - #loadFile, - [absoluteFilePath], - ), + Invocation.method(#loadFile, [absoluteFilePath]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future loadFlutterAsset(String? key) => (super.noSuchMethod( - Invocation.method( - #loadFlutterAsset, - [key], - ), + Invocation.method(#loadFlutterAsset, [key]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override - _i5.Future loadHtmlString( - String? html, { - String? baseUrl, - }) => + _i5.Future loadHtmlString(String? html, {String? baseUrl}) => (super.noSuchMethod( - Invocation.method( - #loadHtmlString, - [html], - {#baseUrl: baseUrl}, - ), + Invocation.method(#loadHtmlString, [html], {#baseUrl: baseUrl}), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -124,109 +96,77 @@ class MockPlatformWebViewController extends _i1.Mock @override _i5.Future loadRequest(_i2.LoadRequestParams? params) => (super.noSuchMethod( - Invocation.method( - #loadRequest, - [params], - ), + Invocation.method(#loadRequest, [params]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future currentUrl() => (super.noSuchMethod( - Invocation.method( - #currentUrl, - [], - ), + Invocation.method(#currentUrl, []), returnValue: _i5.Future.value(), ) as _i5.Future); @override _i5.Future canGoBack() => (super.noSuchMethod( - Invocation.method( - #canGoBack, - [], - ), + Invocation.method(#canGoBack, []), returnValue: _i5.Future.value(false), ) as _i5.Future); @override _i5.Future canGoForward() => (super.noSuchMethod( - Invocation.method( - #canGoForward, - [], - ), + Invocation.method(#canGoForward, []), returnValue: _i5.Future.value(false), ) as _i5.Future); @override _i5.Future goBack() => (super.noSuchMethod( - Invocation.method( - #goBack, - [], - ), + Invocation.method(#goBack, []), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future goForward() => (super.noSuchMethod( - Invocation.method( - #goForward, - [], - ), + Invocation.method(#goForward, []), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future reload() => (super.noSuchMethod( - Invocation.method( - #reload, - [], - ), + Invocation.method(#reload, []), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future clearCache() => (super.noSuchMethod( - Invocation.method( - #clearCache, - [], - ), + Invocation.method(#clearCache, []), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future clearLocalStorage() => (super.noSuchMethod( - Invocation.method( - #clearLocalStorage, - [], - ), + Invocation.method(#clearLocalStorage, []), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setPlatformNavigationDelegate( - _i6.PlatformNavigationDelegate? handler) => + _i6.PlatformNavigationDelegate? handler, + ) => (super.noSuchMethod( - Invocation.method( - #setPlatformNavigationDelegate, - [handler], - ), + Invocation.method(#setPlatformNavigationDelegate, [handler]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future runJavaScript(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScript, - [javaScript], - ), + Invocation.method(#runJavaScript, [javaScript]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -234,27 +174,21 @@ class MockPlatformWebViewController extends _i1.Mock @override _i5.Future runJavaScriptReturningResult(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], - ), - returnValue: _i5.Future.value(_FakeObject_1( - this, - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], + Invocation.method(#runJavaScriptReturningResult, [javaScript]), + returnValue: _i5.Future.value( + _FakeObject_1( + this, + Invocation.method(#runJavaScriptReturningResult, [javaScript]), ), - )), + ), ) as _i5.Future); @override _i5.Future addJavaScriptChannel( - _i4.JavaScriptChannelParams? javaScriptChannelParams) => + _i4.JavaScriptChannelParams? javaScriptChannelParams, + ) => (super.noSuchMethod( - Invocation.method( - #addJavaScriptChannel, - [javaScriptChannelParams], - ), + Invocation.method(#addJavaScriptChannel, [javaScriptChannelParams]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -262,88 +196,51 @@ class MockPlatformWebViewController extends _i1.Mock @override _i5.Future removeJavaScriptChannel(String? javaScriptChannelName) => (super.noSuchMethod( - Invocation.method( - #removeJavaScriptChannel, - [javaScriptChannelName], - ), + Invocation.method(#removeJavaScriptChannel, [ + javaScriptChannelName, + ]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future getTitle() => (super.noSuchMethod( - Invocation.method( - #getTitle, - [], - ), + Invocation.method(#getTitle, []), returnValue: _i5.Future.value(), ) as _i5.Future); @override - _i5.Future scrollTo( - int? x, - int? y, - ) => - (super.noSuchMethod( - Invocation.method( - #scrollTo, - [ - x, - y, - ], - ), + _i5.Future scrollTo(int? x, int? y) => (super.noSuchMethod( + Invocation.method(#scrollTo, [x, y]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override - _i5.Future scrollBy( - int? x, - int? y, - ) => - (super.noSuchMethod( - Invocation.method( - #scrollBy, - [ - x, - y, - ], - ), + _i5.Future scrollBy(int? x, int? y) => (super.noSuchMethod( + Invocation.method(#scrollBy, [x, y]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future<_i3.Offset> getScrollPosition() => (super.noSuchMethod( - Invocation.method( - #getScrollPosition, - [], + Invocation.method(#getScrollPosition, []), + returnValue: _i5.Future<_i3.Offset>.value( + _FakeOffset_2(this, Invocation.method(#getScrollPosition, [])), ), - returnValue: _i5.Future<_i3.Offset>.value(_FakeOffset_2( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), ) as _i5.Future<_i3.Offset>); @override _i5.Future enableZoom(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #enableZoom, - [enabled], - ), + Invocation.method(#enableZoom, [enabled]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setBackgroundColor(_i3.Color? color) => (super.noSuchMethod( - Invocation.method( - #setBackgroundColor, - [color], - ), + Invocation.method(#setBackgroundColor, [color]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -351,105 +248,101 @@ class MockPlatformWebViewController extends _i1.Mock @override _i5.Future setJavaScriptMode(_i2.JavaScriptMode? javaScriptMode) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptMode, - [javaScriptMode], - ), + Invocation.method(#setJavaScriptMode, [javaScriptMode]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setUserAgent(String? userAgent) => (super.noSuchMethod( - Invocation.method( - #setUserAgent, - [userAgent], - ), + Invocation.method(#setUserAgent, [userAgent]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnPlatformPermissionRequest( - void Function(_i2.PlatformWebViewPermissionRequest)? - onPermissionRequest) => + void Function(_i2.PlatformWebViewPermissionRequest)? onPermissionRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnPlatformPermissionRequest, - [onPermissionRequest], - ), + Invocation.method(#setOnPlatformPermissionRequest, [ + onPermissionRequest, + ]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future getUserAgent() => (super.noSuchMethod( - Invocation.method( - #getUserAgent, - [], - ), + Invocation.method(#getUserAgent, []), returnValue: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnConsoleMessage( - void Function(_i2.JavaScriptConsoleMessage)? onConsoleMessage) => + void Function(_i2.JavaScriptConsoleMessage)? onConsoleMessage, + ) => (super.noSuchMethod( - Invocation.method( - #setOnConsoleMessage, - [onConsoleMessage], - ), + Invocation.method(#setOnConsoleMessage, [onConsoleMessage]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnScrollPositionChange( - void Function(_i2.ScrollPositionChange)? onScrollPositionChange) => + void Function(_i2.ScrollPositionChange)? onScrollPositionChange, + ) => (super.noSuchMethod( - Invocation.method( - #setOnScrollPositionChange, - [onScrollPositionChange], - ), + Invocation.method(#setOnScrollPositionChange, [ + onScrollPositionChange, + ]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnJavaScriptAlertDialog( - _i5.Future Function(_i2.JavaScriptAlertDialogRequest)? - onJavaScriptAlertDialog) => + _i5.Future Function(_i2.JavaScriptAlertDialogRequest)? + onJavaScriptAlertDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptAlertDialog, - [onJavaScriptAlertDialog], - ), + Invocation.method(#setOnJavaScriptAlertDialog, [ + onJavaScriptAlertDialog, + ]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnJavaScriptConfirmDialog( - _i5.Future Function(_i2.JavaScriptConfirmDialogRequest)? - onJavaScriptConfirmDialog) => + _i5.Future Function(_i2.JavaScriptConfirmDialogRequest)? + onJavaScriptConfirmDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptConfirmDialog, - [onJavaScriptConfirmDialog], - ), + Invocation.method(#setOnJavaScriptConfirmDialog, [ + onJavaScriptConfirmDialog, + ]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnJavaScriptTextInputDialog( - _i5.Future Function(_i2.JavaScriptTextInputDialogRequest)? - onJavaScriptTextInputDialog) => + _i5.Future Function(_i2.JavaScriptTextInputDialogRequest)? + onJavaScriptTextInputDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptTextInputDialog, - [onJavaScriptTextInputDialog], - ), + Invocation.method(#setOnJavaScriptTextInputDialog, [ + onJavaScriptTextInputDialog, + ]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); + + @override + _i5.Future setOverScrollMode(_i2.WebViewOverScrollMode? mode) => + (super.noSuchMethod( + Invocation.method(#setOverScrollMode, [mode]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -476,12 +369,10 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i5.Future setOnNavigationRequest( - _i6.NavigationRequestCallback? onNavigationRequest) => + _i6.NavigationRequestCallback? onNavigationRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnNavigationRequest, - [onNavigationRequest], - ), + Invocation.method(#setOnNavigationRequest, [onNavigationRequest]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -489,10 +380,7 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i5.Future setOnPageStarted(_i6.PageEventCallback? onPageStarted) => (super.noSuchMethod( - Invocation.method( - #setOnPageStarted, - [onPageStarted], - ), + Invocation.method(#setOnPageStarted, [onPageStarted]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -500,10 +388,7 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i5.Future setOnPageFinished(_i6.PageEventCallback? onPageFinished) => (super.noSuchMethod( - Invocation.method( - #setOnPageFinished, - [onPageFinished], - ), + Invocation.method(#setOnPageFinished, [onPageFinished]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -511,10 +396,7 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i5.Future setOnHttpError(_i6.HttpResponseErrorCallback? onHttpError) => (super.noSuchMethod( - Invocation.method( - #setOnHttpError, - [onHttpError], - ), + Invocation.method(#setOnHttpError, [onHttpError]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -522,22 +404,17 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i5.Future setOnProgress(_i6.ProgressCallback? onProgress) => (super.noSuchMethod( - Invocation.method( - #setOnProgress, - [onProgress], - ), + Invocation.method(#setOnProgress, [onProgress]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnWebResourceError( - _i6.WebResourceErrorCallback? onWebResourceError) => + _i6.WebResourceErrorCallback? onWebResourceError, + ) => (super.noSuchMethod( - Invocation.method( - #setOnWebResourceError, - [onWebResourceError], - ), + Invocation.method(#setOnWebResourceError, [onWebResourceError]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @@ -545,22 +422,17 @@ class MockPlatformNavigationDelegate extends _i1.Mock @override _i5.Future setOnUrlChange(_i6.UrlChangeCallback? onUrlChange) => (super.noSuchMethod( - Invocation.method( - #setOnUrlChange, - [onUrlChange], - ), + Invocation.method(#setOnUrlChange, [onUrlChange]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); @override _i5.Future setOnHttpAuthRequest( - _i6.HttpAuthRequestCallback? onHttpAuthRequest) => + _i6.HttpAuthRequestCallback? onHttpAuthRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnHttpAuthRequest, - [onHttpAuthRequest], - ), + Invocation.method(#setOnHttpAuthRequest, [onHttpAuthRequest]), returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); diff --git a/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart index 20bf87f4dca..31b11889cb7 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter/test/webview_cookie_manager_test.dart. // Do not manually edit this file. @@ -18,6 +18,7 @@ import 'package:webview_flutter_platform_interface/src/types/types.dart' as _i2; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -28,10 +29,7 @@ class _FakePlatformWebViewCookieManagerCreationParams_0 extends _i1.SmartFake _FakePlatformWebViewCookieManagerCreationParams_0( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } /// A class which mocks [PlatformWebViewCookieManager]. @@ -55,19 +53,13 @@ class MockPlatformWebViewCookieManager extends _i1.Mock @override _i4.Future clearCookies() => (super.noSuchMethod( - Invocation.method( - #clearCookies, - [], - ), + Invocation.method(#clearCookies, []), returnValue: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future setCookie(_i2.WebViewCookie? cookie) => (super.noSuchMethod( - Invocation.method( - #setCookie, - [cookie], - ), + Invocation.method(#setCookie, [cookie]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); diff --git a/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart index ec6bd85e095..69e0c449c6d 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter/test/webview_widget_test.dart. // Do not manually edit this file. @@ -25,6 +25,7 @@ import 'package:webview_flutter_platform_interface/src/types/types.dart' as _i2; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -35,30 +36,17 @@ class _FakePlatformWebViewControllerCreationParams_0 extends _i1.SmartFake _FakePlatformWebViewControllerCreationParams_0( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakeObject_1 extends _i1.SmartFake implements Object { - _FakeObject_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeObject_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeOffset_2 extends _i1.SmartFake implements _i3.Offset { - _FakeOffset_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformWebViewWidgetCreationParams_3 extends _i1.SmartFake @@ -66,20 +54,12 @@ class _FakePlatformWebViewWidgetCreationParams_3 extends _i1.SmartFake _FakePlatformWebViewWidgetCreationParams_3( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakeWidget_4 extends _i1.SmartFake implements _i4.Widget { - _FakeWidget_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWidget_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); @override String toString({_i5.DiagnosticLevel? minLevel = _i5.DiagnosticLevel.info}) => @@ -106,35 +86,22 @@ class MockPlatformWebViewController extends _i1.Mock @override _i7.Future loadFile(String? absoluteFilePath) => (super.noSuchMethod( - Invocation.method( - #loadFile, - [absoluteFilePath], - ), + Invocation.method(#loadFile, [absoluteFilePath]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future loadFlutterAsset(String? key) => (super.noSuchMethod( - Invocation.method( - #loadFlutterAsset, - [key], - ), + Invocation.method(#loadFlutterAsset, [key]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override - _i7.Future loadHtmlString( - String? html, { - String? baseUrl, - }) => + _i7.Future loadHtmlString(String? html, {String? baseUrl}) => (super.noSuchMethod( - Invocation.method( - #loadHtmlString, - [html], - {#baseUrl: baseUrl}, - ), + Invocation.method(#loadHtmlString, [html], {#baseUrl: baseUrl}), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @@ -142,109 +109,77 @@ class MockPlatformWebViewController extends _i1.Mock @override _i7.Future loadRequest(_i2.LoadRequestParams? params) => (super.noSuchMethod( - Invocation.method( - #loadRequest, - [params], - ), + Invocation.method(#loadRequest, [params]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future currentUrl() => (super.noSuchMethod( - Invocation.method( - #currentUrl, - [], - ), + Invocation.method(#currentUrl, []), returnValue: _i7.Future.value(), ) as _i7.Future); @override _i7.Future canGoBack() => (super.noSuchMethod( - Invocation.method( - #canGoBack, - [], - ), + Invocation.method(#canGoBack, []), returnValue: _i7.Future.value(false), ) as _i7.Future); @override _i7.Future canGoForward() => (super.noSuchMethod( - Invocation.method( - #canGoForward, - [], - ), + Invocation.method(#canGoForward, []), returnValue: _i7.Future.value(false), ) as _i7.Future); @override _i7.Future goBack() => (super.noSuchMethod( - Invocation.method( - #goBack, - [], - ), + Invocation.method(#goBack, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future goForward() => (super.noSuchMethod( - Invocation.method( - #goForward, - [], - ), + Invocation.method(#goForward, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future reload() => (super.noSuchMethod( - Invocation.method( - #reload, - [], - ), + Invocation.method(#reload, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future clearCache() => (super.noSuchMethod( - Invocation.method( - #clearCache, - [], - ), + Invocation.method(#clearCache, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future clearLocalStorage() => (super.noSuchMethod( - Invocation.method( - #clearLocalStorage, - [], - ), + Invocation.method(#clearLocalStorage, []), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setPlatformNavigationDelegate( - _i8.PlatformNavigationDelegate? handler) => + _i8.PlatformNavigationDelegate? handler, + ) => (super.noSuchMethod( - Invocation.method( - #setPlatformNavigationDelegate, - [handler], - ), + Invocation.method(#setPlatformNavigationDelegate, [handler]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future runJavaScript(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScript, - [javaScript], - ), + Invocation.method(#runJavaScript, [javaScript]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @@ -252,27 +187,21 @@ class MockPlatformWebViewController extends _i1.Mock @override _i7.Future runJavaScriptReturningResult(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], - ), - returnValue: _i7.Future.value(_FakeObject_1( - this, - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], + Invocation.method(#runJavaScriptReturningResult, [javaScript]), + returnValue: _i7.Future.value( + _FakeObject_1( + this, + Invocation.method(#runJavaScriptReturningResult, [javaScript]), ), - )), + ), ) as _i7.Future); @override _i7.Future addJavaScriptChannel( - _i6.JavaScriptChannelParams? javaScriptChannelParams) => + _i6.JavaScriptChannelParams? javaScriptChannelParams, + ) => (super.noSuchMethod( - Invocation.method( - #addJavaScriptChannel, - [javaScriptChannelParams], - ), + Invocation.method(#addJavaScriptChannel, [javaScriptChannelParams]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @@ -280,88 +209,51 @@ class MockPlatformWebViewController extends _i1.Mock @override _i7.Future removeJavaScriptChannel(String? javaScriptChannelName) => (super.noSuchMethod( - Invocation.method( - #removeJavaScriptChannel, - [javaScriptChannelName], - ), + Invocation.method(#removeJavaScriptChannel, [ + javaScriptChannelName, + ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future getTitle() => (super.noSuchMethod( - Invocation.method( - #getTitle, - [], - ), + Invocation.method(#getTitle, []), returnValue: _i7.Future.value(), ) as _i7.Future); @override - _i7.Future scrollTo( - int? x, - int? y, - ) => - (super.noSuchMethod( - Invocation.method( - #scrollTo, - [ - x, - y, - ], - ), + _i7.Future scrollTo(int? x, int? y) => (super.noSuchMethod( + Invocation.method(#scrollTo, [x, y]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override - _i7.Future scrollBy( - int? x, - int? y, - ) => - (super.noSuchMethod( - Invocation.method( - #scrollBy, - [ - x, - y, - ], - ), + _i7.Future scrollBy(int? x, int? y) => (super.noSuchMethod( + Invocation.method(#scrollBy, [x, y]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future<_i3.Offset> getScrollPosition() => (super.noSuchMethod( - Invocation.method( - #getScrollPosition, - [], + Invocation.method(#getScrollPosition, []), + returnValue: _i7.Future<_i3.Offset>.value( + _FakeOffset_2(this, Invocation.method(#getScrollPosition, [])), ), - returnValue: _i7.Future<_i3.Offset>.value(_FakeOffset_2( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), ) as _i7.Future<_i3.Offset>); @override _i7.Future enableZoom(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #enableZoom, - [enabled], - ), + Invocation.method(#enableZoom, [enabled]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setBackgroundColor(_i3.Color? color) => (super.noSuchMethod( - Invocation.method( - #setBackgroundColor, - [color], - ), + Invocation.method(#setBackgroundColor, [color]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @@ -369,105 +261,101 @@ class MockPlatformWebViewController extends _i1.Mock @override _i7.Future setJavaScriptMode(_i2.JavaScriptMode? javaScriptMode) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptMode, - [javaScriptMode], - ), + Invocation.method(#setJavaScriptMode, [javaScriptMode]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setUserAgent(String? userAgent) => (super.noSuchMethod( - Invocation.method( - #setUserAgent, - [userAgent], - ), + Invocation.method(#setUserAgent, [userAgent]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnPlatformPermissionRequest( - void Function(_i2.PlatformWebViewPermissionRequest)? - onPermissionRequest) => + void Function(_i2.PlatformWebViewPermissionRequest)? onPermissionRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnPlatformPermissionRequest, - [onPermissionRequest], - ), + Invocation.method(#setOnPlatformPermissionRequest, [ + onPermissionRequest, + ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future getUserAgent() => (super.noSuchMethod( - Invocation.method( - #getUserAgent, - [], - ), + Invocation.method(#getUserAgent, []), returnValue: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnConsoleMessage( - void Function(_i2.JavaScriptConsoleMessage)? onConsoleMessage) => + void Function(_i2.JavaScriptConsoleMessage)? onConsoleMessage, + ) => (super.noSuchMethod( - Invocation.method( - #setOnConsoleMessage, - [onConsoleMessage], - ), + Invocation.method(#setOnConsoleMessage, [onConsoleMessage]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnScrollPositionChange( - void Function(_i2.ScrollPositionChange)? onScrollPositionChange) => + void Function(_i2.ScrollPositionChange)? onScrollPositionChange, + ) => (super.noSuchMethod( - Invocation.method( - #setOnScrollPositionChange, - [onScrollPositionChange], - ), + Invocation.method(#setOnScrollPositionChange, [ + onScrollPositionChange, + ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnJavaScriptAlertDialog( - _i7.Future Function(_i2.JavaScriptAlertDialogRequest)? - onJavaScriptAlertDialog) => + _i7.Future Function(_i2.JavaScriptAlertDialogRequest)? + onJavaScriptAlertDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptAlertDialog, - [onJavaScriptAlertDialog], - ), + Invocation.method(#setOnJavaScriptAlertDialog, [ + onJavaScriptAlertDialog, + ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnJavaScriptConfirmDialog( - _i7.Future Function(_i2.JavaScriptConfirmDialogRequest)? - onJavaScriptConfirmDialog) => + _i7.Future Function(_i2.JavaScriptConfirmDialogRequest)? + onJavaScriptConfirmDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptConfirmDialog, - [onJavaScriptConfirmDialog], - ), + Invocation.method(#setOnJavaScriptConfirmDialog, [ + onJavaScriptConfirmDialog, + ]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @override _i7.Future setOnJavaScriptTextInputDialog( - _i7.Future Function(_i2.JavaScriptTextInputDialogRequest)? - onJavaScriptTextInputDialog) => + _i7.Future Function(_i2.JavaScriptTextInputDialogRequest)? + onJavaScriptTextInputDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptTextInputDialog, - [onJavaScriptTextInputDialog], - ), + Invocation.method(#setOnJavaScriptTextInputDialog, [ + onJavaScriptTextInputDialog, + ]), + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); + + @override + _i7.Future setOverScrollMode(_i2.WebViewOverScrollMode? mode) => + (super.noSuchMethod( + Invocation.method(#setOverScrollMode, [mode]), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), ) as _i7.Future); @@ -493,16 +381,10 @@ class MockPlatformWebViewWidget extends _i1.Mock @override _i4.Widget build(_i4.BuildContext? context) => (super.noSuchMethod( - Invocation.method( - #build, - [context], - ), + Invocation.method(#build, [context]), returnValue: _FakeWidget_4( this, - Invocation.method( - #build, - [context], - ), + Invocation.method(#build, [context]), ), ) as _i4.Widget); } From 6ba6cf52e998f483aa43855a53eb2948db522fae Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Mon, 7 Apr 2025 17:50:52 -0400 Subject: [PATCH 05/15] export overscroll mode --- .../webview_flutter/webview_flutter/lib/webview_flutter.dart | 1 + .../webview_flutter/test/webview_flutter_export_test.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart b/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart index e135e3c5bcb..b1b237d3140 100644 --- a/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart +++ b/packages/webview_flutter/webview_flutter/lib/webview_flutter.dart @@ -34,6 +34,7 @@ export 'package:webview_flutter_platform_interface/webview_flutter_platform_inte WebResourceResponse, WebViewCookie, WebViewCredential, + WebViewOverScrollMode, WebViewPermissionResourceType, WebViewPlatform; diff --git a/packages/webview_flutter/webview_flutter/test/webview_flutter_export_test.dart b/packages/webview_flutter/webview_flutter/test/webview_flutter_export_test.dart index 907cc474cc8..b404fce0020 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_flutter_export_test.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_flutter_export_test.dart @@ -30,6 +30,7 @@ void main() { main_file.PlatformWebViewPermissionRequest; main_file.PlatformWebViewWidgetCreationParams; main_file.ProgressCallback; + main_file.WebViewOverScrollMode; main_file.WebViewPermissionResourceType; main_file.WebResourceError; main_file.WebResourceErrorCallback; From 0f923bd3ce423b92a0b6d361dac325cc54289ee2 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Mon, 7 Apr 2025 17:52:22 -0400 Subject: [PATCH 06/15] undo web --- .../webview_flutter/webview_flutter_web/example/pubspec.yaml | 4 ---- packages/webview_flutter/webview_flutter_web/pubspec.yaml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml index e1d954eaf09..55e7e655326 100644 --- a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml @@ -29,7 +29,3 @@ dev_dependencies: flutter: uses-material-design: true -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_web/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/pubspec.yaml index b8fa1d1b179..9d5a5ef616b 100644 --- a/packages/webview_flutter/webview_flutter_web/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/pubspec.yaml @@ -34,7 +34,3 @@ topics: - html - webview - webview-flutter -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} From d52fc3630de4169d96ffaa051b8f55f349c90001 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Mon, 7 Apr 2025 20:38:26 -0400 Subject: [PATCH 07/15] android impl test --- ...ndroid_navigation_delegate_test.mocks.dart | 201 +- .../test/android_webview_controller_test.dart | 15 + ...android_webview_controller_test.mocks.dart | 4720 ++++++++--------- ...oid_webview_cookie_manager_test.mocks.dart | 860 ++- ...iew_android_cookie_manager_test.mocks.dart | 107 +- .../webview_android_widget_test.mocks.dart | 1736 +++--- 6 files changed, 3416 insertions(+), 4223 deletions(-) diff --git a/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart index efe2191cc97..52363b1bd59 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter_android/test/android_navigation_delegate_test.dart. // Do not manually edit this file. @@ -16,6 +16,7 @@ import 'package:webview_flutter_android/src/android_webkit.g.dart' as _i2; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -23,35 +24,20 @@ import 'package:webview_flutter_android/src/android_webkit.g.dart' as _i2; class _FakePigeonInstanceManager_0 extends _i1.SmartFake implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePigeonInstanceManager_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeHttpAuthHandler_1 extends _i1.SmartFake implements _i2.HttpAuthHandler { - _FakeHttpAuthHandler_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeHttpAuthHandler_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDownloadListener_2 extends _i1.SmartFake implements _i2.DownloadListener { - _FakeDownloadListener_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDownloadListener_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [HttpAuthHandler]. @@ -63,64 +49,52 @@ class MockHttpAuthHandler extends _i1.Mock implements _i2.HttpAuthHandler { } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override - _i3.Future useHttpAuthUsernamePassword() => (super.noSuchMethod( - Invocation.method( - #useHttpAuthUsernamePassword, - [], - ), - returnValue: _i3.Future.value(false), - ) as _i3.Future); + _i3.Future useHttpAuthUsernamePassword() => + (super.noSuchMethod( + Invocation.method(#useHttpAuthUsernamePassword, []), + returnValue: _i3.Future.value(false), + ) + as _i3.Future); @override - _i3.Future cancel() => (super.noSuchMethod( - Invocation.method( - #cancel, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); + _i3.Future cancel() => + (super.noSuchMethod( + Invocation.method(#cancel, []), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) + as _i3.Future); @override - _i3.Future proceed( - String? username, - String? password, - ) => + _i3.Future proceed(String? username, String? password) => (super.noSuchMethod( - Invocation.method( - #proceed, - [ - username, - password, - ], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); + Invocation.method(#proceed, [username, password]), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) + as _i3.Future); @override - _i2.HttpAuthHandler pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeHttpAuthHandler_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.HttpAuthHandler); + _i2.HttpAuthHandler pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeHttpAuthHandler_1( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.HttpAuthHandler); } /// A class which mocks [DownloadListener]. @@ -132,53 +106,48 @@ class MockDownloadListener extends _i1.Mock implements _i2.DownloadListener { } @override - void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - ) get onDownloadStart => (super.noSuchMethod( - Invocation.getter(#onDownloadStart), - returnValue: ( - _i2.DownloadListener pigeon_instance, - String url, - String userAgent, - String contentDisposition, - String mimetype, - int contentLength, - ) {}, - ) as void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - )); + void Function(_i2.DownloadListener, String, String, String, String, int) + get onDownloadStart => + (super.noSuchMethod( + Invocation.getter(#onDownloadStart), + returnValue: + ( + _i2.DownloadListener pigeon_instance, + String url, + String userAgent, + String contentDisposition, + String mimetype, + int contentLength, + ) {}, + ) + as void Function( + _i2.DownloadListener, + String, + String, + String, + String, + int, + )); @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override - _i2.DownloadListener pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeDownloadListener_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.DownloadListener); + _i2.DownloadListener pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeDownloadListener_2( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.DownloadListener); } diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart index 6762d1f0169..8a5b2ff67f1 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.dart @@ -1574,6 +1574,21 @@ void main() { verify(mockSettings.setTextZoom(100)).called(1); }); + test('setOverScrollMode', () async { + final MockWebView mockWebView = MockWebView(); + final AndroidWebViewController controller = createControllerWithMocks( + mockWebView: mockWebView, + ); + + await controller.setOverScrollMode(WebViewOverScrollMode.always); + + verify( + mockWebView.setOverScrollMode( + android_webview.OverScrollMode.always, + ), + ).called(1); + }); + test('webViewIdentifier', () { final MockWebView mockWebView = MockWebView(); diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart index 2e13f747bd6..c7f3600463e 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter_android/test/android_webview_controller_test.dart. // Do not manually edit this file. @@ -29,6 +29,7 @@ import 'package:webview_flutter_platform_interface/webview_flutter_platform_inte // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -36,34 +37,19 @@ import 'package:webview_flutter_platform_interface/webview_flutter_platform_inte class _FakeWebChromeClient_0 extends _i1.SmartFake implements _i2.WebChromeClient { - _FakeWebChromeClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebChromeClient_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebViewClient_1 extends _i1.SmartFake implements _i2.WebViewClient { - _FakeWebViewClient_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebViewClient_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDownloadListener_2 extends _i1.SmartFake implements _i2.DownloadListener { - _FakeDownloadListener_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDownloadListener_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformNavigationDelegateCreationParams_3 extends _i1.SmartFake @@ -71,10 +57,7 @@ class _FakePlatformNavigationDelegateCreationParams_3 extends _i1.SmartFake _FakePlatformNavigationDelegateCreationParams_3( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakePlatformWebViewControllerCreationParams_4 extends _i1.SmartFake @@ -82,125 +65,67 @@ class _FakePlatformWebViewControllerCreationParams_4 extends _i1.SmartFake _FakePlatformWebViewControllerCreationParams_4( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakeObject_5 extends _i1.SmartFake implements Object { - _FakeObject_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeObject_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeOffset_6 extends _i1.SmartFake implements _i4.Offset { - _FakeOffset_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebView_7 extends _i1.SmartFake implements _i2.WebView { - _FakeWebView_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebView_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeJavaScriptChannel_8 extends _i1.SmartFake implements _i2.JavaScriptChannel { - _FakeJavaScriptChannel_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeJavaScriptChannel_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCookieManager_9 extends _i1.SmartFake implements _i2.CookieManager { - _FakeCookieManager_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCookieManager_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeFlutterAssetManager_10 extends _i1.SmartFake implements _i2.FlutterAssetManager { - _FakeFlutterAssetManager_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFlutterAssetManager_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebStorage_11 extends _i1.SmartFake implements _i2.WebStorage { - _FakeWebStorage_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebStorage_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePigeonInstanceManager_12 extends _i1.SmartFake implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePigeonInstanceManager_12(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformViewsServiceProxy_13 extends _i1.SmartFake implements _i5.PlatformViewsServiceProxy { - _FakePlatformViewsServiceProxy_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformViewsServiceProxy_13(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformWebViewController_14 extends _i1.SmartFake implements _i3.PlatformWebViewController { - _FakePlatformWebViewController_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePlatformWebViewController_14(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeSize_15 extends _i1.SmartFake implements _i4.Size { - _FakeSize_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeSize_15(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeGeolocationPermissionsCallback_16 extends _i1.SmartFake @@ -208,21 +133,13 @@ class _FakeGeolocationPermissionsCallback_16 extends _i1.SmartFake _FakeGeolocationPermissionsCallback_16( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakePermissionRequest_17 extends _i1.SmartFake implements _i2.PermissionRequest { - _FakePermissionRequest_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePermissionRequest_17(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeExpensiveAndroidViewController_18 extends _i1.SmartFake @@ -230,10 +147,7 @@ class _FakeExpensiveAndroidViewController_18 extends _i1.SmartFake _FakeExpensiveAndroidViewController_18( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakeSurfaceAndroidViewController_19 extends _i1.SmartFake @@ -241,30 +155,17 @@ class _FakeSurfaceAndroidViewController_19 extends _i1.SmartFake _FakeSurfaceAndroidViewController_19( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakeWebSettings_20 extends _i1.SmartFake implements _i2.WebSettings { - _FakeWebSettings_20( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebSettings_20(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebViewPoint_21 extends _i1.SmartFake implements _i2.WebViewPoint { - _FakeWebViewPoint_21( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebViewPoint_21(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [AndroidNavigationDelegate]. @@ -273,160 +174,152 @@ class _FakeWebViewPoint_21 extends _i1.SmartFake implements _i2.WebViewPoint { class MockAndroidNavigationDelegate extends _i1.Mock implements _i7.AndroidNavigationDelegate { @override - _i2.WebChromeClient get androidWebChromeClient => (super.noSuchMethod( - Invocation.getter(#androidWebChromeClient), - returnValue: _FakeWebChromeClient_0( - this, - Invocation.getter(#androidWebChromeClient), - ), - returnValueForMissingStub: _FakeWebChromeClient_0( - this, - Invocation.getter(#androidWebChromeClient), - ), - ) as _i2.WebChromeClient); - - @override - _i2.WebViewClient get androidWebViewClient => (super.noSuchMethod( - Invocation.getter(#androidWebViewClient), - returnValue: _FakeWebViewClient_1( - this, - Invocation.getter(#androidWebViewClient), - ), - returnValueForMissingStub: _FakeWebViewClient_1( - this, - Invocation.getter(#androidWebViewClient), - ), - ) as _i2.WebViewClient); - - @override - _i2.DownloadListener get androidDownloadListener => (super.noSuchMethod( - Invocation.getter(#androidDownloadListener), - returnValue: _FakeDownloadListener_2( - this, - Invocation.getter(#androidDownloadListener), - ), - returnValueForMissingStub: _FakeDownloadListener_2( - this, - Invocation.getter(#androidDownloadListener), - ), - ) as _i2.DownloadListener); + _i2.WebChromeClient get androidWebChromeClient => + (super.noSuchMethod( + Invocation.getter(#androidWebChromeClient), + returnValue: _FakeWebChromeClient_0( + this, + Invocation.getter(#androidWebChromeClient), + ), + returnValueForMissingStub: _FakeWebChromeClient_0( + this, + Invocation.getter(#androidWebChromeClient), + ), + ) + as _i2.WebChromeClient); + + @override + _i2.WebViewClient get androidWebViewClient => + (super.noSuchMethod( + Invocation.getter(#androidWebViewClient), + returnValue: _FakeWebViewClient_1( + this, + Invocation.getter(#androidWebViewClient), + ), + returnValueForMissingStub: _FakeWebViewClient_1( + this, + Invocation.getter(#androidWebViewClient), + ), + ) + as _i2.WebViewClient); + + @override + _i2.DownloadListener get androidDownloadListener => + (super.noSuchMethod( + Invocation.getter(#androidDownloadListener), + returnValue: _FakeDownloadListener_2( + this, + Invocation.getter(#androidDownloadListener), + ), + returnValueForMissingStub: _FakeDownloadListener_2( + this, + Invocation.getter(#androidDownloadListener), + ), + ) + as _i2.DownloadListener); @override _i3.PlatformNavigationDelegateCreationParams get params => (super.noSuchMethod( - Invocation.getter(#params), - returnValue: _FakePlatformNavigationDelegateCreationParams_3( - this, - Invocation.getter(#params), - ), - returnValueForMissingStub: - _FakePlatformNavigationDelegateCreationParams_3( - this, - Invocation.getter(#params), - ), - ) as _i3.PlatformNavigationDelegateCreationParams); + Invocation.getter(#params), + returnValue: _FakePlatformNavigationDelegateCreationParams_3( + this, + Invocation.getter(#params), + ), + returnValueForMissingStub: + _FakePlatformNavigationDelegateCreationParams_3( + this, + Invocation.getter(#params), + ), + ) + as _i3.PlatformNavigationDelegateCreationParams); @override _i8.Future setOnLoadRequest(_i7.LoadRequestCallback? onLoadRequest) => (super.noSuchMethod( - Invocation.method( - #setOnLoadRequest, - [onLoadRequest], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnLoadRequest, [onLoadRequest]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnNavigationRequest( - _i3.NavigationRequestCallback? onNavigationRequest) => + _i3.NavigationRequestCallback? onNavigationRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnNavigationRequest, - [onNavigationRequest], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnNavigationRequest, [onNavigationRequest]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnPageStarted(_i3.PageEventCallback? onPageStarted) => (super.noSuchMethod( - Invocation.method( - #setOnPageStarted, - [onPageStarted], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnPageStarted, [onPageStarted]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnPageFinished(_i3.PageEventCallback? onPageFinished) => (super.noSuchMethod( - Invocation.method( - #setOnPageFinished, - [onPageFinished], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnPageFinished, [onPageFinished]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnHttpError(_i3.HttpResponseErrorCallback? onHttpError) => (super.noSuchMethod( - Invocation.method( - #setOnHttpError, - [onHttpError], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnHttpError, [onHttpError]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnProgress(_i3.ProgressCallback? onProgress) => (super.noSuchMethod( - Invocation.method( - #setOnProgress, - [onProgress], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnProgress, [onProgress]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnWebResourceError( - _i3.WebResourceErrorCallback? onWebResourceError) => + _i3.WebResourceErrorCallback? onWebResourceError, + ) => (super.noSuchMethod( - Invocation.method( - #setOnWebResourceError, - [onWebResourceError], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnWebResourceError, [onWebResourceError]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnUrlChange(_i3.UrlChangeCallback? onUrlChange) => (super.noSuchMethod( - Invocation.method( - #setOnUrlChange, - [onUrlChange], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnUrlChange, [onUrlChange]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnHttpAuthRequest( - _i3.HttpAuthRequestCallback? onHttpAuthRequest) => - (super.noSuchMethod( - Invocation.method( - #setOnHttpAuthRequest, - [onHttpAuthRequest], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i3.HttpAuthRequestCallback? onHttpAuthRequest, + ) => + (super.noSuchMethod( + Invocation.method(#setOnHttpAuthRequest, [onHttpAuthRequest]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); } /// A class which mocks [AndroidWebViewController]. @@ -435,415 +328,357 @@ class MockAndroidNavigationDelegate extends _i1.Mock class MockAndroidWebViewController extends _i1.Mock implements _i7.AndroidWebViewController { @override - int get webViewIdentifier => (super.noSuchMethod( - Invocation.getter(#webViewIdentifier), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - _i3.PlatformWebViewControllerCreationParams get params => (super.noSuchMethod( - Invocation.getter(#params), - returnValue: _FakePlatformWebViewControllerCreationParams_4( - this, - Invocation.getter(#params), - ), - returnValueForMissingStub: - _FakePlatformWebViewControllerCreationParams_4( - this, - Invocation.getter(#params), - ), - ) as _i3.PlatformWebViewControllerCreationParams); - - @override - _i8.Future setAllowFileAccess(bool? allow) => (super.noSuchMethod( - Invocation.method( - #setAllowFileAccess, - [allow], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future loadFile(String? absoluteFilePath) => (super.noSuchMethod( - Invocation.method( - #loadFile, - [absoluteFilePath], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future loadFlutterAsset(String? key) => (super.noSuchMethod( - Invocation.method( - #loadFlutterAsset, - [key], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future loadHtmlString( - String? html, { - String? baseUrl, - }) => + int get webViewIdentifier => + (super.noSuchMethod( + Invocation.getter(#webViewIdentifier), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); + + @override + _i3.PlatformWebViewControllerCreationParams get params => (super.noSuchMethod( - Invocation.method( - #loadHtmlString, - [html], - {#baseUrl: baseUrl}, - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.getter(#params), + returnValue: _FakePlatformWebViewControllerCreationParams_4( + this, + Invocation.getter(#params), + ), + returnValueForMissingStub: + _FakePlatformWebViewControllerCreationParams_4( + this, + Invocation.getter(#params), + ), + ) + as _i3.PlatformWebViewControllerCreationParams); + + @override + _i8.Future setAllowFileAccess(bool? allow) => + (super.noSuchMethod( + Invocation.method(#setAllowFileAccess, [allow]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future loadFile(String? absoluteFilePath) => + (super.noSuchMethod( + Invocation.method(#loadFile, [absoluteFilePath]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future loadFlutterAsset(String? key) => + (super.noSuchMethod( + Invocation.method(#loadFlutterAsset, [key]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future loadHtmlString(String? html, {String? baseUrl}) => + (super.noSuchMethod( + Invocation.method(#loadHtmlString, [html], {#baseUrl: baseUrl}), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future loadRequest(_i3.LoadRequestParams? params) => (super.noSuchMethod( - Invocation.method( - #loadRequest, - [params], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future currentUrl() => (super.noSuchMethod( - Invocation.method( - #currentUrl, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future canGoBack() => (super.noSuchMethod( - Invocation.method( - #canGoBack, - [], - ), - returnValue: _i8.Future.value(false), - returnValueForMissingStub: _i8.Future.value(false), - ) as _i8.Future); - - @override - _i8.Future canGoForward() => (super.noSuchMethod( - Invocation.method( - #canGoForward, - [], - ), - returnValue: _i8.Future.value(false), - returnValueForMissingStub: _i8.Future.value(false), - ) as _i8.Future); - - @override - _i8.Future goBack() => (super.noSuchMethod( - Invocation.method( - #goBack, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future goForward() => (super.noSuchMethod( - Invocation.method( - #goForward, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future reload() => (super.noSuchMethod( - Invocation.method( - #reload, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future clearCache() => (super.noSuchMethod( - Invocation.method( - #clearCache, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future clearLocalStorage() => (super.noSuchMethod( - Invocation.method( - #clearLocalStorage, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#loadRequest, [params]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future currentUrl() => + (super.noSuchMethod( + Invocation.method(#currentUrl, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future canGoBack() => + (super.noSuchMethod( + Invocation.method(#canGoBack, []), + returnValue: _i8.Future.value(false), + returnValueForMissingStub: _i8.Future.value(false), + ) + as _i8.Future); + + @override + _i8.Future canGoForward() => + (super.noSuchMethod( + Invocation.method(#canGoForward, []), + returnValue: _i8.Future.value(false), + returnValueForMissingStub: _i8.Future.value(false), + ) + as _i8.Future); + + @override + _i8.Future goBack() => + (super.noSuchMethod( + Invocation.method(#goBack, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future goForward() => + (super.noSuchMethod( + Invocation.method(#goForward, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future reload() => + (super.noSuchMethod( + Invocation.method(#reload, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future clearCache() => + (super.noSuchMethod( + Invocation.method(#clearCache, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future clearLocalStorage() => + (super.noSuchMethod( + Invocation.method(#clearLocalStorage, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setPlatformNavigationDelegate( - _i3.PlatformNavigationDelegate? handler) => + _i3.PlatformNavigationDelegate? handler, + ) => (super.noSuchMethod( - Invocation.method( - #setPlatformNavigationDelegate, - [handler], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setPlatformNavigationDelegate, [handler]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future runJavaScript(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScript, - [javaScript], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future runJavaScript(String? javaScript) => + (super.noSuchMethod( + Invocation.method(#runJavaScript, [javaScript]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future runJavaScriptReturningResult(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], - ), - returnValue: _i8.Future.value(_FakeObject_5( - this, - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], - ), - )), - returnValueForMissingStub: _i8.Future.value(_FakeObject_5( - this, - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], - ), - )), - ) as _i8.Future); + Invocation.method(#runJavaScriptReturningResult, [javaScript]), + returnValue: _i8.Future.value( + _FakeObject_5( + this, + Invocation.method(#runJavaScriptReturningResult, [javaScript]), + ), + ), + returnValueForMissingStub: _i8.Future.value( + _FakeObject_5( + this, + Invocation.method(#runJavaScriptReturningResult, [javaScript]), + ), + ), + ) + as _i8.Future); @override _i8.Future addJavaScriptChannel( - _i3.JavaScriptChannelParams? javaScriptChannelParams) => + _i3.JavaScriptChannelParams? javaScriptChannelParams, + ) => (super.noSuchMethod( - Invocation.method( - #addJavaScriptChannel, - [javaScriptChannelParams], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#addJavaScriptChannel, [javaScriptChannelParams]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future removeJavaScriptChannel(String? javaScriptChannelName) => (super.noSuchMethod( - Invocation.method( - #removeJavaScriptChannel, - [javaScriptChannelName], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#removeJavaScriptChannel, [ + javaScriptChannelName, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future getTitle() => (super.noSuchMethod( - Invocation.method( - #getTitle, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future getTitle() => + (super.noSuchMethod( + Invocation.method(#getTitle, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future scrollTo( - int? x, - int? y, - ) => + _i8.Future scrollTo(int? x, int? y) => (super.noSuchMethod( - Invocation.method( - #scrollTo, - [ - x, - y, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future scrollBy( - int? x, - int? y, - ) => + Invocation.method(#scrollTo, [x, y]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future scrollBy(int? x, int? y) => + (super.noSuchMethod( + Invocation.method(#scrollBy, [x, y]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future<_i4.Offset> getScrollPosition() => (super.noSuchMethod( - Invocation.method( - #scrollBy, - [ - x, - y, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future<_i4.Offset> getScrollPosition() => (super.noSuchMethod( - Invocation.method( - #getScrollPosition, - [], - ), - returnValue: _i8.Future<_i4.Offset>.value(_FakeOffset_6( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), - returnValueForMissingStub: _i8.Future<_i4.Offset>.value(_FakeOffset_6( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), - ) as _i8.Future<_i4.Offset>); - - @override - _i8.Future enableZoom(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #enableZoom, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setBackgroundColor(_i4.Color? color) => (super.noSuchMethod( - Invocation.method( - #setBackgroundColor, - [color], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#getScrollPosition, []), + returnValue: _i8.Future<_i4.Offset>.value( + _FakeOffset_6(this, Invocation.method(#getScrollPosition, [])), + ), + returnValueForMissingStub: _i8.Future<_i4.Offset>.value( + _FakeOffset_6(this, Invocation.method(#getScrollPosition, [])), + ), + ) + as _i8.Future<_i4.Offset>); + + @override + _i8.Future enableZoom(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#enableZoom, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setBackgroundColor(_i4.Color? color) => + (super.noSuchMethod( + Invocation.method(#setBackgroundColor, [color]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setJavaScriptMode(_i3.JavaScriptMode? javaScriptMode) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptMode, - [javaScriptMode], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setJavaScriptMode, [javaScriptMode]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future setUserAgent(String? userAgent) => (super.noSuchMethod( - Invocation.method( - #setUserAgent, - [userAgent], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future setUserAgent(String? userAgent) => + (super.noSuchMethod( + Invocation.method(#setUserAgent, [userAgent]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnScrollPositionChange( - void Function(_i3.ScrollPositionChange)? onScrollPositionChange) => + void Function(_i3.ScrollPositionChange)? onScrollPositionChange, + ) => (super.noSuchMethod( - Invocation.method( - #setOnScrollPositionChange, - [onScrollPositionChange], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnScrollPositionChange, [ + onScrollPositionChange, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setMediaPlaybackRequiresUserGesture(bool? require) => (super.noSuchMethod( - Invocation.method( - #setMediaPlaybackRequiresUserGesture, - [require], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setTextZoom(int? textZoom) => (super.noSuchMethod( - Invocation.method( - #setTextZoom, - [textZoom], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setAllowContentAccess(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setAllowContentAccess, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setGeolocationEnabled(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setGeolocationEnabled, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setMediaPlaybackRequiresUserGesture, [require]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setTextZoom(int? textZoom) => + (super.noSuchMethod( + Invocation.method(#setTextZoom, [textZoom]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setAllowContentAccess(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setAllowContentAccess, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setGeolocationEnabled(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setGeolocationEnabled, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnShowFileSelector( - _i8.Future> Function(_i7.FileSelectorParams)? - onShowFileSelector) => + _i8.Future> Function(_i7.FileSelectorParams)? + onShowFileSelector, + ) => (super.noSuchMethod( - Invocation.method( - #setOnShowFileSelector, - [onShowFileSelector], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnShowFileSelector, [onShowFileSelector]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnPlatformPermissionRequest( - void Function(_i3.PlatformWebViewPermissionRequest)? - onPermissionRequest) => + void Function(_i3.PlatformWebViewPermissionRequest)? onPermissionRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnPlatformPermissionRequest, - [onPermissionRequest], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnPlatformPermissionRequest, [ + onPermissionRequest, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setGeolocationPermissionsPromptCallbacks({ @@ -851,17 +686,14 @@ class MockAndroidWebViewController extends _i1.Mock _i7.OnGeolocationPermissionsHidePrompt? onHidePrompt, }) => (super.noSuchMethod( - Invocation.method( - #setGeolocationPermissionsPromptCallbacks, - [], - { - #onShowPrompt: onShowPrompt, - #onHidePrompt: onHidePrompt, - }, - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setGeolocationPermissionsPromptCallbacks, [], { + #onShowPrompt: onShowPrompt, + #onHidePrompt: onHidePrompt, + }), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setCustomWidgetCallbacks({ @@ -869,78 +701,85 @@ class MockAndroidWebViewController extends _i1.Mock required _i7.OnHideCustomWidgetCallback? onHideCustomWidget, }) => (super.noSuchMethod( - Invocation.method( - #setCustomWidgetCallbacks, - [], - { - #onShowCustomWidget: onShowCustomWidget, - #onHideCustomWidget: onHideCustomWidget, - }, - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setCustomWidgetCallbacks, [], { + #onShowCustomWidget: onShowCustomWidget, + #onHideCustomWidget: onHideCustomWidget, + }), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnConsoleMessage( - void Function(_i3.JavaScriptConsoleMessage)? onConsoleMessage) => + void Function(_i3.JavaScriptConsoleMessage)? onConsoleMessage, + ) => (super.noSuchMethod( - Invocation.method( - #setOnConsoleMessage, - [onConsoleMessage], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnConsoleMessage, [onConsoleMessage]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future getUserAgent() => (super.noSuchMethod( - Invocation.method( - #getUserAgent, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future getUserAgent() => + (super.noSuchMethod( + Invocation.method(#getUserAgent, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnJavaScriptAlertDialog( - _i8.Future Function(_i3.JavaScriptAlertDialogRequest)? - onJavaScriptAlertDialog) => + _i8.Future Function(_i3.JavaScriptAlertDialogRequest)? + onJavaScriptAlertDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptAlertDialog, - [onJavaScriptAlertDialog], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnJavaScriptAlertDialog, [ + onJavaScriptAlertDialog, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnJavaScriptConfirmDialog( - _i8.Future Function(_i3.JavaScriptConfirmDialogRequest)? - onJavaScriptConfirmDialog) => + _i8.Future Function(_i3.JavaScriptConfirmDialogRequest)? + onJavaScriptConfirmDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptConfirmDialog, - [onJavaScriptConfirmDialog], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setOnJavaScriptConfirmDialog, [ + onJavaScriptConfirmDialog, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setOnJavaScriptTextInputDialog( - _i8.Future Function(_i3.JavaScriptTextInputDialogRequest)? - onJavaScriptTextInputDialog) => - (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptTextInputDialog, - [onJavaScriptTextInputDialog], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future Function(_i3.JavaScriptTextInputDialogRequest)? + onJavaScriptTextInputDialog, + ) => + (super.noSuchMethod( + Invocation.method(#setOnJavaScriptTextInputDialog, [ + onJavaScriptTextInputDialog, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setOverScrollMode(_i3.WebViewOverScrollMode? mode) => + (super.noSuchMethod( + Invocation.method(#setOverScrollMode, [mode]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); } /// A class which mocks [AndroidWebViewProxy]. @@ -949,649 +788,583 @@ class MockAndroidWebViewController extends _i1.Mock class MockAndroidWebViewProxy extends _i1.Mock implements _i9.AndroidWebViewProxy { @override - _i2.WebView Function( - {void Function( - _i2.WebView, - int, - int, - int, - int, - )? onScrollChanged}) get newWebView => (super.noSuchMethod( - Invocation.getter(#newWebView), - returnValue: ( - {void Function( - _i2.WebView, - int, - int, - int, - int, - )? onScrollChanged}) => - _FakeWebView_7( - this, - Invocation.getter(#newWebView), - ), - returnValueForMissingStub: ( - {void Function( - _i2.WebView, - int, - int, - int, - int, - )? onScrollChanged}) => - _FakeWebView_7( - this, - Invocation.getter(#newWebView), - ), - ) as _i2.WebView Function( - {void Function( - _i2.WebView, - int, - int, - int, - int, - )? onScrollChanged})); + _i2.WebView Function({ + void Function(_i2.WebView, int, int, int, int)? onScrollChanged, + }) + get newWebView => + (super.noSuchMethod( + Invocation.getter(#newWebView), + returnValue: + ({ + void Function(_i2.WebView, int, int, int, int)? + onScrollChanged, + }) => _FakeWebView_7(this, Invocation.getter(#newWebView)), + returnValueForMissingStub: + ({ + void Function(_i2.WebView, int, int, int, int)? + onScrollChanged, + }) => _FakeWebView_7(this, Invocation.getter(#newWebView)), + ) + as _i2.WebView Function({ + void Function(_i2.WebView, int, int, int, int)? onScrollChanged, + })); @override _i2.JavaScriptChannel Function({ required String channelName, - required void Function( - _i2.JavaScriptChannel, - String, - ) postMessage, - }) get newJavaScriptChannel => (super.noSuchMethod( - Invocation.getter(#newJavaScriptChannel), - returnValue: ({ - required String channelName, - required void Function( - _i2.JavaScriptChannel, - String, - ) postMessage, - }) => - _FakeJavaScriptChannel_8( - this, - Invocation.getter(#newJavaScriptChannel), - ), - returnValueForMissingStub: ({ - required String channelName, - required void Function( - _i2.JavaScriptChannel, - String, - ) postMessage, - }) => - _FakeJavaScriptChannel_8( - this, - Invocation.getter(#newJavaScriptChannel), - ), - ) as _i2.JavaScriptChannel Function({ - required String channelName, - required void Function( - _i2.JavaScriptChannel, - String, - ) postMessage, - })); + required void Function(_i2.JavaScriptChannel, String) postMessage, + }) + get newJavaScriptChannel => + (super.noSuchMethod( + Invocation.getter(#newJavaScriptChannel), + returnValue: + ({ + required String channelName, + required void Function(_i2.JavaScriptChannel, String) + postMessage, + }) => _FakeJavaScriptChannel_8( + this, + Invocation.getter(#newJavaScriptChannel), + ), + returnValueForMissingStub: + ({ + required String channelName, + required void Function(_i2.JavaScriptChannel, String) + postMessage, + }) => _FakeJavaScriptChannel_8( + this, + Invocation.getter(#newJavaScriptChannel), + ), + ) + as _i2.JavaScriptChannel Function({ + required String channelName, + required void Function(_i2.JavaScriptChannel, String) postMessage, + })); @override _i2.WebViewClient Function({ - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - bool, - )? doUpdateVisitedHistory, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageFinished, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageStarted, - void Function( - _i2.WebViewClient, - _i2.WebView, - int, - String, - String, - )? onReceivedError, + void Function(_i2.WebViewClient, _i2.WebView, String, bool)? + doUpdateVisitedHistory, + void Function(_i2.WebViewClient, _i2.WebView, String)? onPageFinished, + void Function(_i2.WebViewClient, _i2.WebView, String)? onPageStarted, + void Function(_i2.WebViewClient, _i2.WebView, int, String, String)? + onReceivedError, void Function( _i2.WebViewClient, _i2.WebView, _i2.HttpAuthHandler, String, String, - )? onReceivedHttpAuthRequest, + )? + onReceivedHttpAuthRequest, void Function( _i2.WebViewClient, _i2.WebView, _i2.WebResourceRequest, _i2.WebResourceResponse, - )? onReceivedHttpError, + )? + onReceivedHttpError, void Function( _i2.WebViewClient, _i2.WebView, _i2.WebResourceRequest, _i2.WebResourceError, - )? onReceivedRequestError, + )? + onReceivedRequestError, void Function( _i2.WebViewClient, _i2.WebView, _i2.WebResourceRequest, _i2.WebResourceErrorCompat, - )? onReceivedRequestErrorCompat, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - )? requestLoading, - void Function( - _i2.WebViewClient, - _i2.WebView, + )? + onReceivedRequestErrorCompat, + void Function(_i2.WebViewClient, _i2.WebView, _i2.WebResourceRequest)? + requestLoading, + void Function(_i2.WebViewClient, _i2.WebView, String)? urlLoading, + }) + get newWebViewClient => + (super.noSuchMethod( + Invocation.getter(#newWebViewClient), + returnValue: + ({ + void Function(_i2.WebViewClient, _i2.WebView, String, bool)? + doUpdateVisitedHistory, + void Function(_i2.WebViewClient, _i2.WebView, String)? + onPageFinished, + void Function(_i2.WebViewClient, _i2.WebView, String)? + onPageStarted, + void Function( + _i2.WebViewClient, + _i2.WebView, + int, + String, + String, + )? + onReceivedError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.HttpAuthHandler, + String, + String, + )? + onReceivedHttpAuthRequest, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceResponse, + )? + onReceivedHttpError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceError, + )? + onReceivedRequestError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceErrorCompat, + )? + onReceivedRequestErrorCompat, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + )? + requestLoading, + void Function(_i2.WebViewClient, _i2.WebView, String)? + urlLoading, + }) => _FakeWebViewClient_1( + this, + Invocation.getter(#newWebViewClient), + ), + returnValueForMissingStub: + ({ + void Function(_i2.WebViewClient, _i2.WebView, String, bool)? + doUpdateVisitedHistory, + void Function(_i2.WebViewClient, _i2.WebView, String)? + onPageFinished, + void Function(_i2.WebViewClient, _i2.WebView, String)? + onPageStarted, + void Function( + _i2.WebViewClient, + _i2.WebView, + int, + String, + String, + )? + onReceivedError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.HttpAuthHandler, + String, + String, + )? + onReceivedHttpAuthRequest, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceResponse, + )? + onReceivedHttpError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceError, + )? + onReceivedRequestError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceErrorCompat, + )? + onReceivedRequestErrorCompat, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + )? + requestLoading, + void Function(_i2.WebViewClient, _i2.WebView, String)? + urlLoading, + }) => _FakeWebViewClient_1( + this, + Invocation.getter(#newWebViewClient), + ), + ) + as _i2.WebViewClient Function({ + void Function(_i2.WebViewClient, _i2.WebView, String, bool)? + doUpdateVisitedHistory, + void Function(_i2.WebViewClient, _i2.WebView, String)? + onPageFinished, + void Function(_i2.WebViewClient, _i2.WebView, String)? + onPageStarted, + void Function(_i2.WebViewClient, _i2.WebView, int, String, String)? + onReceivedError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.HttpAuthHandler, + String, + String, + )? + onReceivedHttpAuthRequest, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceResponse, + )? + onReceivedHttpError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceError, + )? + onReceivedRequestError, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + _i2.WebResourceErrorCompat, + )? + onReceivedRequestErrorCompat, + void Function( + _i2.WebViewClient, + _i2.WebView, + _i2.WebResourceRequest, + )? + requestLoading, + void Function(_i2.WebViewClient, _i2.WebView, String)? urlLoading, + })); + + @override + _i2.DownloadListener Function({ + required void Function( + _i2.DownloadListener, + String, + String, String, - )? urlLoading, - }) get newWebViewClient => (super.noSuchMethod( - Invocation.getter(#newWebViewClient), - returnValue: ({ - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - bool, - )? doUpdateVisitedHistory, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageFinished, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageStarted, - void Function( - _i2.WebViewClient, - _i2.WebView, - int, - String, - String, - )? onReceivedError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.HttpAuthHandler, - String, - String, - )? onReceivedHttpAuthRequest, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceResponse, - )? onReceivedHttpError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceError, - )? onReceivedRequestError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceErrorCompat, - )? onReceivedRequestErrorCompat, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - )? requestLoading, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? urlLoading, - }) => - _FakeWebViewClient_1( - this, - Invocation.getter(#newWebViewClient), - ), - returnValueForMissingStub: ({ - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - bool, - )? doUpdateVisitedHistory, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageFinished, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageStarted, - void Function( - _i2.WebViewClient, - _i2.WebView, - int, - String, - String, - )? onReceivedError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.HttpAuthHandler, - String, - String, - )? onReceivedHttpAuthRequest, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceResponse, - )? onReceivedHttpError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceError, - )? onReceivedRequestError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceErrorCompat, - )? onReceivedRequestErrorCompat, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - )? requestLoading, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? urlLoading, - }) => - _FakeWebViewClient_1( - this, - Invocation.getter(#newWebViewClient), - ), - ) as _i2.WebViewClient Function({ - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - bool, - )? doUpdateVisitedHistory, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageFinished, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageStarted, - void Function( - _i2.WebViewClient, - _i2.WebView, - int, - String, - String, - )? onReceivedError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.HttpAuthHandler, - String, - String, - )? onReceivedHttpAuthRequest, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceResponse, - )? onReceivedHttpError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceError, - )? onReceivedRequestError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - _i2.WebResourceErrorCompat, - )? onReceivedRequestErrorCompat, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - )? requestLoading, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? urlLoading, - })); - - @override - _i2.DownloadListener Function( - {required void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - ) onDownloadStart}) get newDownloadListener => (super.noSuchMethod( - Invocation.getter(#newDownloadListener), - returnValue: ( - {required void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - ) onDownloadStart}) => - _FakeDownloadListener_2( - this, - Invocation.getter(#newDownloadListener), - ), - returnValueForMissingStub: ( - {required void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - ) onDownloadStart}) => - _FakeDownloadListener_2( - this, - Invocation.getter(#newDownloadListener), - ), - ) as _i2.DownloadListener Function( - {required void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - ) onDownloadStart})); + String, + int, + ) + onDownloadStart, + }) + get newDownloadListener => + (super.noSuchMethod( + Invocation.getter(#newDownloadListener), + returnValue: + ({ + required void Function( + _i2.DownloadListener, + String, + String, + String, + String, + int, + ) + onDownloadStart, + }) => _FakeDownloadListener_2( + this, + Invocation.getter(#newDownloadListener), + ), + returnValueForMissingStub: + ({ + required void Function( + _i2.DownloadListener, + String, + String, + String, + String, + int, + ) + onDownloadStart, + }) => _FakeDownloadListener_2( + this, + Invocation.getter(#newDownloadListener), + ), + ) + as _i2.DownloadListener Function({ + required void Function( + _i2.DownloadListener, + String, + String, + String, + String, + int, + ) + onDownloadStart, + })); @override _i2.WebChromeClient Function({ - void Function( - _i2.WebChromeClient, - _i2.ConsoleMessage, - )? onConsoleMessage, + void Function(_i2.WebChromeClient, _i2.ConsoleMessage)? onConsoleMessage, void Function(_i2.WebChromeClient)? onGeolocationPermissionsHidePrompt, void Function( _i2.WebChromeClient, String, _i2.GeolocationPermissionsCallback, - )? onGeolocationPermissionsShowPrompt, + )? + onGeolocationPermissionsShowPrompt, void Function(_i2.WebChromeClient)? onHideCustomView, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsAlert, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsConfirm, + _i8.Future Function(_i2.WebChromeClient, _i2.WebView, String, String)? + onJsAlert, + _i8.Future Function(_i2.WebChromeClient, _i2.WebView, String, String)? + onJsConfirm, _i8.Future Function( _i2.WebChromeClient, _i2.WebView, String, String, String, - )? onJsPrompt, - void Function( - _i2.WebChromeClient, - _i2.PermissionRequest, - )? onPermissionRequest, - void Function( - _i2.WebChromeClient, - _i2.WebView, - int, - )? onProgressChanged, - void Function( - _i2.WebChromeClient, - _i2.View, - _i2.CustomViewCallback, - )? onShowCustomView, + )? + onJsPrompt, + void Function(_i2.WebChromeClient, _i2.PermissionRequest)? + onPermissionRequest, + void Function(_i2.WebChromeClient, _i2.WebView, int)? onProgressChanged, + void Function(_i2.WebChromeClient, _i2.View, _i2.CustomViewCallback)? + onShowCustomView, _i8.Future> Function( _i2.WebChromeClient, _i2.WebView, _i2.FileChooserParams, - )? onShowFileChooser, - }) get newWebChromeClient => (super.noSuchMethod( - Invocation.getter(#newWebChromeClient), - returnValue: ({ - void Function( - _i2.WebChromeClient, - _i2.ConsoleMessage, - )? onConsoleMessage, - void Function(_i2.WebChromeClient)? - onGeolocationPermissionsHidePrompt, - void Function( - _i2.WebChromeClient, - String, - _i2.GeolocationPermissionsCallback, - )? onGeolocationPermissionsShowPrompt, - void Function(_i2.WebChromeClient)? onHideCustomView, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsAlert, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsConfirm, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - String, - )? onJsPrompt, - void Function( - _i2.WebChromeClient, - _i2.PermissionRequest, - )? onPermissionRequest, - void Function( - _i2.WebChromeClient, - _i2.WebView, - int, - )? onProgressChanged, - void Function( - _i2.WebChromeClient, - _i2.View, - _i2.CustomViewCallback, - )? onShowCustomView, - _i8.Future> Function( - _i2.WebChromeClient, - _i2.WebView, - _i2.FileChooserParams, - )? onShowFileChooser, - }) => - _FakeWebChromeClient_0( - this, - Invocation.getter(#newWebChromeClient), - ), - returnValueForMissingStub: ({ - void Function( - _i2.WebChromeClient, - _i2.ConsoleMessage, - )? onConsoleMessage, - void Function(_i2.WebChromeClient)? - onGeolocationPermissionsHidePrompt, - void Function( - _i2.WebChromeClient, - String, - _i2.GeolocationPermissionsCallback, - )? onGeolocationPermissionsShowPrompt, - void Function(_i2.WebChromeClient)? onHideCustomView, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsAlert, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsConfirm, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - String, - )? onJsPrompt, - void Function( - _i2.WebChromeClient, - _i2.PermissionRequest, - )? onPermissionRequest, - void Function( - _i2.WebChromeClient, - _i2.WebView, - int, - )? onProgressChanged, - void Function( - _i2.WebChromeClient, - _i2.View, - _i2.CustomViewCallback, - )? onShowCustomView, - _i8.Future> Function( - _i2.WebChromeClient, - _i2.WebView, - _i2.FileChooserParams, - )? onShowFileChooser, - }) => - _FakeWebChromeClient_0( - this, - Invocation.getter(#newWebChromeClient), - ), - ) as _i2.WebChromeClient Function({ - void Function( - _i2.WebChromeClient, - _i2.ConsoleMessage, - )? onConsoleMessage, - void Function(_i2.WebChromeClient)? onGeolocationPermissionsHidePrompt, - void Function( - _i2.WebChromeClient, - String, - _i2.GeolocationPermissionsCallback, - )? onGeolocationPermissionsShowPrompt, - void Function(_i2.WebChromeClient)? onHideCustomView, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsAlert, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - )? onJsConfirm, - _i8.Future Function( - _i2.WebChromeClient, - _i2.WebView, - String, - String, - String, - )? onJsPrompt, - void Function( - _i2.WebChromeClient, - _i2.PermissionRequest, - )? onPermissionRequest, - void Function( - _i2.WebChromeClient, - _i2.WebView, - int, - )? onProgressChanged, - void Function( - _i2.WebChromeClient, - _i2.View, - _i2.CustomViewCallback, - )? onShowCustomView, - _i8.Future> Function( - _i2.WebChromeClient, - _i2.WebView, - _i2.FileChooserParams, - )? onShowFileChooser, - })); + )? + onShowFileChooser, + }) + get newWebChromeClient => + (super.noSuchMethod( + Invocation.getter(#newWebChromeClient), + returnValue: + ({ + void Function(_i2.WebChromeClient, _i2.ConsoleMessage)? + onConsoleMessage, + void Function(_i2.WebChromeClient)? + onGeolocationPermissionsHidePrompt, + void Function( + _i2.WebChromeClient, + String, + _i2.GeolocationPermissionsCallback, + )? + onGeolocationPermissionsShowPrompt, + void Function(_i2.WebChromeClient)? onHideCustomView, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + )? + onJsAlert, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + )? + onJsConfirm, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + String, + )? + onJsPrompt, + void Function(_i2.WebChromeClient, _i2.PermissionRequest)? + onPermissionRequest, + void Function(_i2.WebChromeClient, _i2.WebView, int)? + onProgressChanged, + void Function( + _i2.WebChromeClient, + _i2.View, + _i2.CustomViewCallback, + )? + onShowCustomView, + _i8.Future> Function( + _i2.WebChromeClient, + _i2.WebView, + _i2.FileChooserParams, + )? + onShowFileChooser, + }) => _FakeWebChromeClient_0( + this, + Invocation.getter(#newWebChromeClient), + ), + returnValueForMissingStub: + ({ + void Function(_i2.WebChromeClient, _i2.ConsoleMessage)? + onConsoleMessage, + void Function(_i2.WebChromeClient)? + onGeolocationPermissionsHidePrompt, + void Function( + _i2.WebChromeClient, + String, + _i2.GeolocationPermissionsCallback, + )? + onGeolocationPermissionsShowPrompt, + void Function(_i2.WebChromeClient)? onHideCustomView, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + )? + onJsAlert, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + )? + onJsConfirm, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + String, + )? + onJsPrompt, + void Function(_i2.WebChromeClient, _i2.PermissionRequest)? + onPermissionRequest, + void Function(_i2.WebChromeClient, _i2.WebView, int)? + onProgressChanged, + void Function( + _i2.WebChromeClient, + _i2.View, + _i2.CustomViewCallback, + )? + onShowCustomView, + _i8.Future> Function( + _i2.WebChromeClient, + _i2.WebView, + _i2.FileChooserParams, + )? + onShowFileChooser, + }) => _FakeWebChromeClient_0( + this, + Invocation.getter(#newWebChromeClient), + ), + ) + as _i2.WebChromeClient Function({ + void Function(_i2.WebChromeClient, _i2.ConsoleMessage)? + onConsoleMessage, + void Function(_i2.WebChromeClient)? + onGeolocationPermissionsHidePrompt, + void Function( + _i2.WebChromeClient, + String, + _i2.GeolocationPermissionsCallback, + )? + onGeolocationPermissionsShowPrompt, + void Function(_i2.WebChromeClient)? onHideCustomView, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + )? + onJsAlert, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + )? + onJsConfirm, + _i8.Future Function( + _i2.WebChromeClient, + _i2.WebView, + String, + String, + String, + )? + onJsPrompt, + void Function(_i2.WebChromeClient, _i2.PermissionRequest)? + onPermissionRequest, + void Function(_i2.WebChromeClient, _i2.WebView, int)? + onProgressChanged, + void Function( + _i2.WebChromeClient, + _i2.View, + _i2.CustomViewCallback, + )? + onShowCustomView, + _i8.Future> Function( + _i2.WebChromeClient, + _i2.WebView, + _i2.FileChooserParams, + )? + onShowFileChooser, + })); @override _i8.Future Function(bool) get setWebContentsDebuggingEnabledWebView => (super.noSuchMethod( - Invocation.getter(#setWebContentsDebuggingEnabledWebView), - returnValue: (bool __p0) => _i8.Future.value(), - returnValueForMissingStub: (bool __p0) => _i8.Future.value(), - ) as _i8.Future Function(bool)); + Invocation.getter(#setWebContentsDebuggingEnabledWebView), + returnValue: (bool __p0) => _i8.Future.value(), + returnValueForMissingStub: (bool __p0) => _i8.Future.value(), + ) + as _i8.Future Function(bool)); @override - _i2.CookieManager Function() get instanceCookieManager => (super.noSuchMethod( - Invocation.getter(#instanceCookieManager), - returnValue: () => _FakeCookieManager_9( - this, - Invocation.getter(#instanceCookieManager), - ), - returnValueForMissingStub: () => _FakeCookieManager_9( - this, - Invocation.getter(#instanceCookieManager), - ), - ) as _i2.CookieManager Function()); + _i2.CookieManager Function() get instanceCookieManager => + (super.noSuchMethod( + Invocation.getter(#instanceCookieManager), + returnValue: + () => _FakeCookieManager_9( + this, + Invocation.getter(#instanceCookieManager), + ), + returnValueForMissingStub: + () => _FakeCookieManager_9( + this, + Invocation.getter(#instanceCookieManager), + ), + ) + as _i2.CookieManager Function()); @override _i2.FlutterAssetManager Function() get instanceFlutterAssetManager => (super.noSuchMethod( - Invocation.getter(#instanceFlutterAssetManager), - returnValue: () => _FakeFlutterAssetManager_10( - this, - Invocation.getter(#instanceFlutterAssetManager), - ), - returnValueForMissingStub: () => _FakeFlutterAssetManager_10( - this, - Invocation.getter(#instanceFlutterAssetManager), - ), - ) as _i2.FlutterAssetManager Function()); - - @override - _i2.WebStorage Function() get instanceWebStorage => (super.noSuchMethod( - Invocation.getter(#instanceWebStorage), - returnValue: () => _FakeWebStorage_11( - this, - Invocation.getter(#instanceWebStorage), - ), - returnValueForMissingStub: () => _FakeWebStorage_11( - this, - Invocation.getter(#instanceWebStorage), - ), - ) as _i2.WebStorage Function()); + Invocation.getter(#instanceFlutterAssetManager), + returnValue: + () => _FakeFlutterAssetManager_10( + this, + Invocation.getter(#instanceFlutterAssetManager), + ), + returnValueForMissingStub: + () => _FakeFlutterAssetManager_10( + this, + Invocation.getter(#instanceFlutterAssetManager), + ), + ) + as _i2.FlutterAssetManager Function()); + + @override + _i2.WebStorage Function() get instanceWebStorage => + (super.noSuchMethod( + Invocation.getter(#instanceWebStorage), + returnValue: + () => _FakeWebStorage_11( + this, + Invocation.getter(#instanceWebStorage), + ), + returnValueForMissingStub: + () => _FakeWebStorage_11( + this, + Invocation.getter(#instanceWebStorage), + ), + ) + as _i2.WebStorage Function()); } /// A class which mocks [AndroidWebViewWidgetCreationParams]. @@ -1601,67 +1374,77 @@ class MockAndroidWebViewProxy extends _i1.Mock class MockAndroidWebViewWidgetCreationParams extends _i1.Mock implements _i7.AndroidWebViewWidgetCreationParams { @override - _i2.PigeonInstanceManager get instanceManager => (super.noSuchMethod( - Invocation.getter(#instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get instanceManager => + (super.noSuchMethod( + Invocation.getter(#instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override _i5.PlatformViewsServiceProxy get platformViewsServiceProxy => (super.noSuchMethod( - Invocation.getter(#platformViewsServiceProxy), - returnValue: _FakePlatformViewsServiceProxy_13( - this, - Invocation.getter(#platformViewsServiceProxy), - ), - returnValueForMissingStub: _FakePlatformViewsServiceProxy_13( - this, - Invocation.getter(#platformViewsServiceProxy), - ), - ) as _i5.PlatformViewsServiceProxy); - - @override - bool get displayWithHybridComposition => (super.noSuchMethod( - Invocation.getter(#displayWithHybridComposition), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - _i3.PlatformWebViewController get controller => (super.noSuchMethod( - Invocation.getter(#controller), - returnValue: _FakePlatformWebViewController_14( - this, - Invocation.getter(#controller), - ), - returnValueForMissingStub: _FakePlatformWebViewController_14( - this, - Invocation.getter(#controller), - ), - ) as _i3.PlatformWebViewController); - - @override - _i4.TextDirection get layoutDirection => (super.noSuchMethod( - Invocation.getter(#layoutDirection), - returnValue: _i4.TextDirection.rtl, - returnValueForMissingStub: _i4.TextDirection.rtl, - ) as _i4.TextDirection); + Invocation.getter(#platformViewsServiceProxy), + returnValue: _FakePlatformViewsServiceProxy_13( + this, + Invocation.getter(#platformViewsServiceProxy), + ), + returnValueForMissingStub: _FakePlatformViewsServiceProxy_13( + this, + Invocation.getter(#platformViewsServiceProxy), + ), + ) + as _i5.PlatformViewsServiceProxy); + + @override + bool get displayWithHybridComposition => + (super.noSuchMethod( + Invocation.getter(#displayWithHybridComposition), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); + + @override + _i3.PlatformWebViewController get controller => + (super.noSuchMethod( + Invocation.getter(#controller), + returnValue: _FakePlatformWebViewController_14( + this, + Invocation.getter(#controller), + ), + returnValueForMissingStub: _FakePlatformWebViewController_14( + this, + Invocation.getter(#controller), + ), + ) + as _i3.PlatformWebViewController); + + @override + _i4.TextDirection get layoutDirection => + (super.noSuchMethod( + Invocation.getter(#layoutDirection), + returnValue: _i4.TextDirection.rtl, + returnValueForMissingStub: _i4.TextDirection.rtl, + ) + as _i4.TextDirection); @override Set<_i10.Factory<_i11.OneSequenceGestureRecognizer>> get gestureRecognizers => (super.noSuchMethod( - Invocation.getter(#gestureRecognizers), - returnValue: <_i10.Factory<_i11.OneSequenceGestureRecognizer>>{}, - returnValueForMissingStub: <_i10 - .Factory<_i11.OneSequenceGestureRecognizer>>{}, - ) as Set<_i10.Factory<_i11.OneSequenceGestureRecognizer>>); + Invocation.getter(#gestureRecognizers), + returnValue: <_i10.Factory<_i11.OneSequenceGestureRecognizer>>{}, + returnValueForMissingStub: + <_i10.Factory<_i11.OneSequenceGestureRecognizer>>{}, + ) + as Set<_i10.Factory<_i11.OneSequenceGestureRecognizer>>); } /// A class which mocks [ExpensiveAndroidViewController]. @@ -1670,187 +1453,160 @@ class MockAndroidWebViewWidgetCreationParams extends _i1.Mock class MockExpensiveAndroidViewController extends _i1.Mock implements _i6.ExpensiveAndroidViewController { @override - bool get requiresViewComposition => (super.noSuchMethod( - Invocation.getter(#requiresViewComposition), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get requiresViewComposition => + (super.noSuchMethod( + Invocation.getter(#requiresViewComposition), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - int get viewId => (super.noSuchMethod( - Invocation.getter(#viewId), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get viewId => + (super.noSuchMethod( + Invocation.getter(#viewId), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - bool get awaitingCreation => (super.noSuchMethod( - Invocation.getter(#awaitingCreation), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get awaitingCreation => + (super.noSuchMethod( + Invocation.getter(#awaitingCreation), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i6.PointTransformer get pointTransformer => (super.noSuchMethod( - Invocation.getter(#pointTransformer), - returnValue: (_i4.Offset position) => _FakeOffset_6( - this, - Invocation.getter(#pointTransformer), - ), - returnValueForMissingStub: (_i4.Offset position) => _FakeOffset_6( - this, - Invocation.getter(#pointTransformer), - ), - ) as _i6.PointTransformer); + _i6.PointTransformer get pointTransformer => + (super.noSuchMethod( + Invocation.getter(#pointTransformer), + returnValue: + (_i4.Offset position) => + _FakeOffset_6(this, Invocation.getter(#pointTransformer)), + returnValueForMissingStub: + (_i4.Offset position) => + _FakeOffset_6(this, Invocation.getter(#pointTransformer)), + ) + as _i6.PointTransformer); @override set pointTransformer(_i6.PointTransformer? transformer) => super.noSuchMethod( - Invocation.setter( - #pointTransformer, - transformer, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#pointTransformer, transformer), + returnValueForMissingStub: null, + ); @override - bool get isCreated => (super.noSuchMethod( - Invocation.getter(#isCreated), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get isCreated => + (super.noSuchMethod( + Invocation.getter(#isCreated), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override List<_i6.PlatformViewCreatedCallback> get createdCallbacks => (super.noSuchMethod( - Invocation.getter(#createdCallbacks), - returnValue: <_i6.PlatformViewCreatedCallback>[], - returnValueForMissingStub: <_i6.PlatformViewCreatedCallback>[], - ) as List<_i6.PlatformViewCreatedCallback>); + Invocation.getter(#createdCallbacks), + returnValue: <_i6.PlatformViewCreatedCallback>[], + returnValueForMissingStub: <_i6.PlatformViewCreatedCallback>[], + ) + as List<_i6.PlatformViewCreatedCallback>); @override - _i8.Future setOffset(_i4.Offset? off) => (super.noSuchMethod( - Invocation.method( - #setOffset, - [off], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future setOffset(_i4.Offset? off) => + (super.noSuchMethod( + Invocation.method(#setOffset, [off]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future create({ - _i4.Size? size, - _i4.Offset? position, - }) => + _i8.Future create({_i4.Size? size, _i4.Offset? position}) => (super.noSuchMethod( - Invocation.method( - #create, - [], - { - #size: size, - #position: position, - }, - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future<_i4.Size> setSize(_i4.Size? size) => (super.noSuchMethod( - Invocation.method( - #setSize, - [size], - ), - returnValue: _i8.Future<_i4.Size>.value(_FakeSize_15( - this, - Invocation.method( - #setSize, - [size], - ), - )), - returnValueForMissingStub: _i8.Future<_i4.Size>.value(_FakeSize_15( - this, - Invocation.method( - #setSize, - [size], - ), - )), - ) as _i8.Future<_i4.Size>); + Invocation.method(#create, [], {#size: size, #position: position}), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future<_i4.Size> setSize(_i4.Size? size) => + (super.noSuchMethod( + Invocation.method(#setSize, [size]), + returnValue: _i8.Future<_i4.Size>.value( + _FakeSize_15(this, Invocation.method(#setSize, [size])), + ), + returnValueForMissingStub: _i8.Future<_i4.Size>.value( + _FakeSize_15(this, Invocation.method(#setSize, [size])), + ), + ) + as _i8.Future<_i4.Size>); @override _i8.Future sendMotionEvent(_i6.AndroidMotionEvent? event) => (super.noSuchMethod( - Invocation.method( - #sendMotionEvent, - [event], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#sendMotionEvent, [event]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override void addOnPlatformViewCreatedListener( - _i6.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #addOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); + _i6.PlatformViewCreatedCallback? listener, + ) => super.noSuchMethod( + Invocation.method(#addOnPlatformViewCreatedListener, [listener]), + returnValueForMissingStub: null, + ); @override void removeOnPlatformViewCreatedListener( - _i6.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #removeOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); + _i6.PlatformViewCreatedCallback? listener, + ) => super.noSuchMethod( + Invocation.method(#removeOnPlatformViewCreatedListener, [listener]), + returnValueForMissingStub: null, + ); @override _i8.Future setLayoutDirection(_i4.TextDirection? layoutDirection) => (super.noSuchMethod( - Invocation.method( - #setLayoutDirection, - [layoutDirection], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setLayoutDirection, [layoutDirection]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future dispatchPointerEvent(_i11.PointerEvent? event) => (super.noSuchMethod( - Invocation.method( - #dispatchPointerEvent, - [event], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future clearFocus() => (super.noSuchMethod( - Invocation.method( - #clearFocus, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future dispose() => (super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#dispatchPointerEvent, [event]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future clearFocus() => + (super.noSuchMethod( + Invocation.method(#clearFocus, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future dispose() => + (super.noSuchMethod( + Invocation.method(#dispose, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); } /// A class which mocks [FlutterAssetManager]. @@ -1859,73 +1615,64 @@ class MockExpensiveAndroidViewController extends _i1.Mock class MockFlutterAssetManager extends _i1.Mock implements _i2.FlutterAssetManager { @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i8.Future> list(String? path) => (super.noSuchMethod( - Invocation.method( - #list, - [path], - ), - returnValue: _i8.Future>.value([]), - returnValueForMissingStub: _i8.Future>.value([]), - ) as _i8.Future>); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i8.Future> list(String? path) => + (super.noSuchMethod( + Invocation.method(#list, [path]), + returnValue: _i8.Future>.value([]), + returnValueForMissingStub: _i8.Future>.value( + [], + ), + ) + as _i8.Future>); @override _i8.Future getAssetFilePathByName(String? name) => (super.noSuchMethod( - Invocation.method( - #getAssetFilePathByName, - [name], - ), - returnValue: _i8.Future.value(_i12.dummyValue( - this, - Invocation.method( - #getAssetFilePathByName, - [name], - ), - )), - returnValueForMissingStub: - _i8.Future.value(_i12.dummyValue( - this, - Invocation.method( - #getAssetFilePathByName, - [name], - ), - )), - ) as _i8.Future); - - @override - _i2.FlutterAssetManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeFlutterAssetManager_10( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeFlutterAssetManager_10( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.FlutterAssetManager); + Invocation.method(#getAssetFilePathByName, [name]), + returnValue: _i8.Future.value( + _i12.dummyValue( + this, + Invocation.method(#getAssetFilePathByName, [name]), + ), + ), + returnValueForMissingStub: _i8.Future.value( + _i12.dummyValue( + this, + Invocation.method(#getAssetFilePathByName, [name]), + ), + ), + ) + as _i8.Future); + + @override + _i2.FlutterAssetManager pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeFlutterAssetManager_10( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeFlutterAssetManager_10( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.FlutterAssetManager); } /// A class which mocks [GeolocationPermissionsCallback]. @@ -1934,58 +1681,43 @@ class MockFlutterAssetManager extends _i1.Mock class MockGeolocationPermissionsCallback extends _i1.Mock implements _i2.GeolocationPermissionsCallback { @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i8.Future invoke( - String? origin, - bool? allow, - bool? retain, - ) => - (super.noSuchMethod( - Invocation.method( - #invoke, - [ - origin, - allow, - retain, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i2.GeolocationPermissionsCallback pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeGeolocationPermissionsCallback_16( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeGeolocationPermissionsCallback_16( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.GeolocationPermissionsCallback); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i8.Future invoke(String? origin, bool? allow, bool? retain) => + (super.noSuchMethod( + Invocation.method(#invoke, [origin, allow, retain]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i2.GeolocationPermissionsCallback pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeGeolocationPermissionsCallback_16( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeGeolocationPermissionsCallback_16( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.GeolocationPermissionsCallback); } /// A class which mocks [JavaScriptChannel]. @@ -1993,71 +1725,60 @@ class MockGeolocationPermissionsCallback extends _i1.Mock /// See the documentation for Mockito's code generation for more information. class MockJavaScriptChannel extends _i1.Mock implements _i2.JavaScriptChannel { @override - String get channelName => (super.noSuchMethod( - Invocation.getter(#channelName), - returnValue: _i12.dummyValue( - this, - Invocation.getter(#channelName), - ), - returnValueForMissingStub: _i12.dummyValue( - this, - Invocation.getter(#channelName), - ), - ) as String); - - @override - void Function( - _i2.JavaScriptChannel, - String, - ) get postMessage => (super.noSuchMethod( - Invocation.getter(#postMessage), - returnValue: ( - _i2.JavaScriptChannel pigeon_instance, - String message, - ) {}, - returnValueForMissingStub: ( - _i2.JavaScriptChannel pigeon_instance, - String message, - ) {}, - ) as void Function( - _i2.JavaScriptChannel, - String, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.JavaScriptChannel pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeJavaScriptChannel_8( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeJavaScriptChannel_8( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.JavaScriptChannel); + String get channelName => + (super.noSuchMethod( + Invocation.getter(#channelName), + returnValue: _i12.dummyValue( + this, + Invocation.getter(#channelName), + ), + returnValueForMissingStub: _i12.dummyValue( + this, + Invocation.getter(#channelName), + ), + ) + as String); + + @override + void Function(_i2.JavaScriptChannel, String) get postMessage => + (super.noSuchMethod( + Invocation.getter(#postMessage), + returnValue: + (_i2.JavaScriptChannel pigeon_instance, String message) {}, + returnValueForMissingStub: + (_i2.JavaScriptChannel pigeon_instance, String message) {}, + ) + as void Function(_i2.JavaScriptChannel, String)); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i2.JavaScriptChannel pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeJavaScriptChannel_8( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeJavaScriptChannel_8( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.JavaScriptChannel); } /// A class which mocks [PermissionRequest]. @@ -2065,66 +1786,61 @@ class MockJavaScriptChannel extends _i1.Mock implements _i2.JavaScriptChannel { /// See the documentation for Mockito's code generation for more information. class MockPermissionRequest extends _i1.Mock implements _i2.PermissionRequest { @override - List get resources => (super.noSuchMethod( - Invocation.getter(#resources), - returnValue: [], - returnValueForMissingStub: [], - ) as List); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i8.Future grant(List? resources) => (super.noSuchMethod( - Invocation.method( - #grant, - [resources], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future deny() => (super.noSuchMethod( - Invocation.method( - #deny, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i2.PermissionRequest pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakePermissionRequest_17( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakePermissionRequest_17( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.PermissionRequest); + List get resources => + (super.noSuchMethod( + Invocation.getter(#resources), + returnValue: [], + returnValueForMissingStub: [], + ) + as List); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i8.Future grant(List? resources) => + (super.noSuchMethod( + Invocation.method(#grant, [resources]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future deny() => + (super.noSuchMethod( + Invocation.method(#deny, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i2.PermissionRequest pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakePermissionRequest_17( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakePermissionRequest_17( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.PermissionRequest); } /// A class which mocks [PlatformViewsServiceProxy]. @@ -2143,49 +1859,38 @@ class MockPlatformViewsServiceProxy extends _i1.Mock _i4.VoidCallback? onFocus, }) => (super.noSuchMethod( - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - returnValue: _FakeExpensiveAndroidViewController_18( - this, - Invocation.method( - #initExpensiveAndroidView, - [], - { + Invocation.method(#initExpensiveAndroidView, [], { #id: id, #viewType: viewType, #layoutDirection: layoutDirection, #creationParams: creationParams, #creationParamsCodec: creationParamsCodec, #onFocus: onFocus, - }, - ), - ), - returnValueForMissingStub: _FakeExpensiveAndroidViewController_18( - this, - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - ) as _i6.ExpensiveAndroidViewController); + }), + returnValue: _FakeExpensiveAndroidViewController_18( + this, + Invocation.method(#initExpensiveAndroidView, [], { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }), + ), + returnValueForMissingStub: _FakeExpensiveAndroidViewController_18( + this, + Invocation.method(#initExpensiveAndroidView, [], { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }), + ), + ) + as _i6.ExpensiveAndroidViewController); @override _i6.SurfaceAndroidViewController initSurfaceAndroidView({ @@ -2197,49 +1902,38 @@ class MockPlatformViewsServiceProxy extends _i1.Mock _i4.VoidCallback? onFocus, }) => (super.noSuchMethod( - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - returnValue: _FakeSurfaceAndroidViewController_19( - this, - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - returnValueForMissingStub: _FakeSurfaceAndroidViewController_19( - this, - Invocation.method( - #initSurfaceAndroidView, - [], - { + Invocation.method(#initSurfaceAndroidView, [], { #id: id, #viewType: viewType, #layoutDirection: layoutDirection, #creationParams: creationParams, #creationParamsCodec: creationParamsCodec, #onFocus: onFocus, - }, - ), - ), - ) as _i6.SurfaceAndroidViewController); + }), + returnValue: _FakeSurfaceAndroidViewController_19( + this, + Invocation.method(#initSurfaceAndroidView, [], { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }), + ), + returnValueForMissingStub: _FakeSurfaceAndroidViewController_19( + this, + Invocation.method(#initSurfaceAndroidView, [], { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }), + ), + ) + as _i6.SurfaceAndroidViewController); } /// A class which mocks [SurfaceAndroidViewController]. @@ -2248,187 +1942,160 @@ class MockPlatformViewsServiceProxy extends _i1.Mock class MockSurfaceAndroidViewController extends _i1.Mock implements _i6.SurfaceAndroidViewController { @override - bool get requiresViewComposition => (super.noSuchMethod( - Invocation.getter(#requiresViewComposition), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get requiresViewComposition => + (super.noSuchMethod( + Invocation.getter(#requiresViewComposition), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - int get viewId => (super.noSuchMethod( - Invocation.getter(#viewId), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + int get viewId => + (super.noSuchMethod( + Invocation.getter(#viewId), + returnValue: 0, + returnValueForMissingStub: 0, + ) + as int); @override - bool get awaitingCreation => (super.noSuchMethod( - Invocation.getter(#awaitingCreation), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get awaitingCreation => + (super.noSuchMethod( + Invocation.getter(#awaitingCreation), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override - _i6.PointTransformer get pointTransformer => (super.noSuchMethod( - Invocation.getter(#pointTransformer), - returnValue: (_i4.Offset position) => _FakeOffset_6( - this, - Invocation.getter(#pointTransformer), - ), - returnValueForMissingStub: (_i4.Offset position) => _FakeOffset_6( - this, - Invocation.getter(#pointTransformer), - ), - ) as _i6.PointTransformer); + _i6.PointTransformer get pointTransformer => + (super.noSuchMethod( + Invocation.getter(#pointTransformer), + returnValue: + (_i4.Offset position) => + _FakeOffset_6(this, Invocation.getter(#pointTransformer)), + returnValueForMissingStub: + (_i4.Offset position) => + _FakeOffset_6(this, Invocation.getter(#pointTransformer)), + ) + as _i6.PointTransformer); @override set pointTransformer(_i6.PointTransformer? transformer) => super.noSuchMethod( - Invocation.setter( - #pointTransformer, - transformer, - ), - returnValueForMissingStub: null, - ); + Invocation.setter(#pointTransformer, transformer), + returnValueForMissingStub: null, + ); @override - bool get isCreated => (super.noSuchMethod( - Invocation.getter(#isCreated), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); + bool get isCreated => + (super.noSuchMethod( + Invocation.getter(#isCreated), + returnValue: false, + returnValueForMissingStub: false, + ) + as bool); @override List<_i6.PlatformViewCreatedCallback> get createdCallbacks => (super.noSuchMethod( - Invocation.getter(#createdCallbacks), - returnValue: <_i6.PlatformViewCreatedCallback>[], - returnValueForMissingStub: <_i6.PlatformViewCreatedCallback>[], - ) as List<_i6.PlatformViewCreatedCallback>); + Invocation.getter(#createdCallbacks), + returnValue: <_i6.PlatformViewCreatedCallback>[], + returnValueForMissingStub: <_i6.PlatformViewCreatedCallback>[], + ) + as List<_i6.PlatformViewCreatedCallback>); @override - _i8.Future setOffset(_i4.Offset? off) => (super.noSuchMethod( - Invocation.method( - #setOffset, - [off], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future setOffset(_i4.Offset? off) => + (super.noSuchMethod( + Invocation.method(#setOffset, [off]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future create({ - _i4.Size? size, - _i4.Offset? position, - }) => + _i8.Future create({_i4.Size? size, _i4.Offset? position}) => + (super.noSuchMethod( + Invocation.method(#create, [], {#size: size, #position: position}), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future<_i4.Size> setSize(_i4.Size? size) => (super.noSuchMethod( - Invocation.method( - #create, - [], - { - #size: size, - #position: position, - }, - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future<_i4.Size> setSize(_i4.Size? size) => (super.noSuchMethod( - Invocation.method( - #setSize, - [size], - ), - returnValue: _i8.Future<_i4.Size>.value(_FakeSize_15( - this, - Invocation.method( - #setSize, - [size], - ), - )), - returnValueForMissingStub: _i8.Future<_i4.Size>.value(_FakeSize_15( - this, - Invocation.method( - #setSize, - [size], - ), - )), - ) as _i8.Future<_i4.Size>); + Invocation.method(#setSize, [size]), + returnValue: _i8.Future<_i4.Size>.value( + _FakeSize_15(this, Invocation.method(#setSize, [size])), + ), + returnValueForMissingStub: _i8.Future<_i4.Size>.value( + _FakeSize_15(this, Invocation.method(#setSize, [size])), + ), + ) + as _i8.Future<_i4.Size>); @override _i8.Future sendMotionEvent(_i6.AndroidMotionEvent? event) => (super.noSuchMethod( - Invocation.method( - #sendMotionEvent, - [event], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#sendMotionEvent, [event]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override void addOnPlatformViewCreatedListener( - _i6.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #addOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); + _i6.PlatformViewCreatedCallback? listener, + ) => super.noSuchMethod( + Invocation.method(#addOnPlatformViewCreatedListener, [listener]), + returnValueForMissingStub: null, + ); @override void removeOnPlatformViewCreatedListener( - _i6.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #removeOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); + _i6.PlatformViewCreatedCallback? listener, + ) => super.noSuchMethod( + Invocation.method(#removeOnPlatformViewCreatedListener, [listener]), + returnValueForMissingStub: null, + ); @override _i8.Future setLayoutDirection(_i4.TextDirection? layoutDirection) => (super.noSuchMethod( - Invocation.method( - #setLayoutDirection, - [layoutDirection], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setLayoutDirection, [layoutDirection]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future dispatchPointerEvent(_i11.PointerEvent? event) => (super.noSuchMethod( - Invocation.method( - #dispatchPointerEvent, - [event], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future clearFocus() => (super.noSuchMethod( - Invocation.method( - #clearFocus, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future dispose() => (super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#dispatchPointerEvent, [event]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future clearFocus() => + (super.noSuchMethod( + Invocation.method(#clearFocus, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future dispose() => + (super.noSuchMethod( + Invocation.method(#dispose, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); } /// A class which mocks [WebChromeClient]. @@ -2436,94 +2103,85 @@ class MockSurfaceAndroidViewController extends _i1.Mock /// See the documentation for Mockito's code generation for more information. class MockWebChromeClient extends _i1.Mock implements _i2.WebChromeClient { @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override _i8.Future setSynchronousReturnValueForOnShowFileChooser(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnShowFileChooser, - [value], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setSynchronousReturnValueForOnShowFileChooser, [ + value, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setSynchronousReturnValueForOnConsoleMessage(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnConsoleMessage, - [value], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setSynchronousReturnValueForOnConsoleMessage, [ + value, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setSynchronousReturnValueForOnJsAlert(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnJsAlert, - [value], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setSynchronousReturnValueForOnJsAlert, [value]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setSynchronousReturnValueForOnJsConfirm(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnJsConfirm, - [value], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setSynchronousReturnValueForOnJsConfirm, [ + value, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setSynchronousReturnValueForOnJsPrompt(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnJsPrompt, - [value], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i2.WebChromeClient pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebChromeClient_0( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeWebChromeClient_0( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebChromeClient); + Invocation.method(#setSynchronousReturnValueForOnJsPrompt, [value]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i2.WebChromeClient pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebChromeClient_0( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeWebChromeClient_0( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebChromeClient); } /// A class which mocks [WebSettings]. @@ -2531,217 +2189,190 @@ class MockWebChromeClient extends _i1.Mock implements _i2.WebChromeClient { /// See the documentation for Mockito's code generation for more information. class MockWebSettings extends _i1.Mock implements _i2.WebSettings { @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i8.Future setDomStorageEnabled(bool? flag) => (super.noSuchMethod( - Invocation.method( - #setDomStorageEnabled, - [flag], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i8.Future setDomStorageEnabled(bool? flag) => + (super.noSuchMethod( + Invocation.method(#setDomStorageEnabled, [flag]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setJavaScriptCanOpenWindowsAutomatically(bool? flag) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptCanOpenWindowsAutomatically, - [flag], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setJavaScriptCanOpenWindowsAutomatically, [ + flag, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setSupportMultipleWindows(bool? support) => (super.noSuchMethod( - Invocation.method( - #setSupportMultipleWindows, - [support], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setSupportMultipleWindows, [support]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future setJavaScriptEnabled(bool? flag) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptEnabled, - [flag], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future setJavaScriptEnabled(bool? flag) => + (super.noSuchMethod( + Invocation.method(#setJavaScriptEnabled, [flag]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setUserAgentString(String? userAgentString) => (super.noSuchMethod( - Invocation.method( - #setUserAgentString, - [userAgentString], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setUserAgentString, [userAgentString]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setMediaPlaybackRequiresUserGesture(bool? require) => (super.noSuchMethod( - Invocation.method( - #setMediaPlaybackRequiresUserGesture, - [require], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setMediaPlaybackRequiresUserGesture, [require]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future setSupportZoom(bool? support) => (super.noSuchMethod( - Invocation.method( - #setSupportZoom, - [support], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future setSupportZoom(bool? support) => + (super.noSuchMethod( + Invocation.method(#setSupportZoom, [support]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setLoadWithOverviewMode(bool? overview) => (super.noSuchMethod( - Invocation.method( - #setLoadWithOverviewMode, - [overview], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setUseWideViewPort(bool? use) => (super.noSuchMethod( - Invocation.method( - #setUseWideViewPort, - [use], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setDisplayZoomControls(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setDisplayZoomControls, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setBuiltInZoomControls(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setBuiltInZoomControls, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setAllowFileAccess(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setAllowFileAccess, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setAllowContentAccess(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setAllowContentAccess, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setGeolocationEnabled(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setGeolocationEnabled, - [enabled], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setTextZoom(int? textZoom) => (super.noSuchMethod( - Invocation.method( - #setTextZoom, - [textZoom], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future getUserAgentString() => (super.noSuchMethod( - Invocation.method( - #getUserAgentString, - [], - ), - returnValue: _i8.Future.value(_i12.dummyValue( - this, - Invocation.method( - #getUserAgentString, - [], - ), - )), - returnValueForMissingStub: - _i8.Future.value(_i12.dummyValue( - this, - Invocation.method( - #getUserAgentString, - [], - ), - )), - ) as _i8.Future); - - @override - _i2.WebSettings pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebSettings_20( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeWebSettings_20( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebSettings); + Invocation.method(#setLoadWithOverviewMode, [overview]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setUseWideViewPort(bool? use) => + (super.noSuchMethod( + Invocation.method(#setUseWideViewPort, [use]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setDisplayZoomControls(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setDisplayZoomControls, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setBuiltInZoomControls(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setBuiltInZoomControls, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setAllowFileAccess(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setAllowFileAccess, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setAllowContentAccess(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setAllowContentAccess, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setGeolocationEnabled(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setGeolocationEnabled, [enabled]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setTextZoom(int? textZoom) => + (super.noSuchMethod( + Invocation.method(#setTextZoom, [textZoom]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future getUserAgentString() => + (super.noSuchMethod( + Invocation.method(#getUserAgentString, []), + returnValue: _i8.Future.value( + _i12.dummyValue( + this, + Invocation.method(#getUserAgentString, []), + ), + ), + returnValueForMissingStub: _i8.Future.value( + _i12.dummyValue( + this, + Invocation.method(#getUserAgentString, []), + ), + ), + ) + as _i8.Future); + + @override + _i2.WebSettings pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebSettings_20( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeWebSettings_20( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebSettings); } /// A class which mocks [WebView]. @@ -2749,71 +2380,58 @@ class MockWebSettings extends _i1.Mock implements _i2.WebSettings { /// See the documentation for Mockito's code generation for more information. class MockWebView extends _i1.Mock implements _i2.WebView { @override - _i2.WebSettings get settings => (super.noSuchMethod( - Invocation.getter(#settings), - returnValue: _FakeWebSettings_20( - this, - Invocation.getter(#settings), - ), - returnValueForMissingStub: _FakeWebSettings_20( - this, - Invocation.getter(#settings), - ), - ) as _i2.WebSettings); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.WebSettings pigeonVar_settings() => (super.noSuchMethod( - Invocation.method( - #pigeonVar_settings, - [], - ), - returnValue: _FakeWebSettings_20( - this, - Invocation.method( - #pigeonVar_settings, - [], - ), - ), - returnValueForMissingStub: _FakeWebSettings_20( - this, - Invocation.method( - #pigeonVar_settings, - [], - ), - ), - ) as _i2.WebSettings); - - @override - _i8.Future loadData( - String? data, - String? mimeType, - String? encoding, - ) => + _i2.WebSettings get settings => + (super.noSuchMethod( + Invocation.getter(#settings), + returnValue: _FakeWebSettings_20( + this, + Invocation.getter(#settings), + ), + returnValueForMissingStub: _FakeWebSettings_20( + this, + Invocation.getter(#settings), + ), + ) + as _i2.WebSettings); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.method( - #loadData, - [ - data, - mimeType, - encoding, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i2.WebSettings pigeonVar_settings() => + (super.noSuchMethod( + Invocation.method(#pigeonVar_settings, []), + returnValue: _FakeWebSettings_20( + this, + Invocation.method(#pigeonVar_settings, []), + ), + returnValueForMissingStub: _FakeWebSettings_20( + this, + Invocation.method(#pigeonVar_settings, []), + ), + ) + as _i2.WebSettings); + + @override + _i8.Future loadData(String? data, String? mimeType, String? encoding) => + (super.noSuchMethod( + Invocation.method(#loadData, [data, mimeType, encoding]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future loadDataWithBaseUrl( @@ -2824,297 +2442,240 @@ class MockWebView extends _i1.Mock implements _i2.WebView { String? historyUrl, ) => (super.noSuchMethod( - Invocation.method( - #loadDataWithBaseUrl, - [ - baseUrl, - data, - mimeType, - encoding, - historyUrl, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future loadUrl( - String? url, - Map? headers, - ) => + Invocation.method(#loadDataWithBaseUrl, [ + baseUrl, + data, + mimeType, + encoding, + historyUrl, + ]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future loadUrl(String? url, Map? headers) => (super.noSuchMethod( - Invocation.method( - #loadUrl, - [ - url, - headers, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future postUrl( - String? url, - _i13.Uint8List? data, - ) => + Invocation.method(#loadUrl, [url, headers]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future postUrl(String? url, _i13.Uint8List? data) => (super.noSuchMethod( - Invocation.method( - #postUrl, - [ - url, - data, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future getUrl() => (super.noSuchMethod( - Invocation.method( - #getUrl, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future canGoBack() => (super.noSuchMethod( - Invocation.method( - #canGoBack, - [], - ), - returnValue: _i8.Future.value(false), - returnValueForMissingStub: _i8.Future.value(false), - ) as _i8.Future); - - @override - _i8.Future canGoForward() => (super.noSuchMethod( - Invocation.method( - #canGoForward, - [], - ), - returnValue: _i8.Future.value(false), - returnValueForMissingStub: _i8.Future.value(false), - ) as _i8.Future); - - @override - _i8.Future goBack() => (super.noSuchMethod( - Invocation.method( - #goBack, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future goForward() => (super.noSuchMethod( - Invocation.method( - #goForward, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future reload() => (super.noSuchMethod( - Invocation.method( - #reload, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future clearCache(bool? includeDiskFiles) => (super.noSuchMethod( - Invocation.method( - #clearCache, - [includeDiskFiles], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#postUrl, [url, data]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future getUrl() => + (super.noSuchMethod( + Invocation.method(#getUrl, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future canGoBack() => + (super.noSuchMethod( + Invocation.method(#canGoBack, []), + returnValue: _i8.Future.value(false), + returnValueForMissingStub: _i8.Future.value(false), + ) + as _i8.Future); + + @override + _i8.Future canGoForward() => + (super.noSuchMethod( + Invocation.method(#canGoForward, []), + returnValue: _i8.Future.value(false), + returnValueForMissingStub: _i8.Future.value(false), + ) + as _i8.Future); + + @override + _i8.Future goBack() => + (super.noSuchMethod( + Invocation.method(#goBack, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future goForward() => + (super.noSuchMethod( + Invocation.method(#goForward, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future reload() => + (super.noSuchMethod( + Invocation.method(#reload, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future clearCache(bool? includeDiskFiles) => + (super.noSuchMethod( + Invocation.method(#clearCache, [includeDiskFiles]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future evaluateJavascript(String? javascriptString) => (super.noSuchMethod( - Invocation.method( - #evaluateJavascript, - [javascriptString], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#evaluateJavascript, [javascriptString]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future getTitle() => (super.noSuchMethod( - Invocation.method( - #getTitle, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future getTitle() => + (super.noSuchMethod( + Invocation.method(#getTitle, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setWebViewClient(_i2.WebViewClient? client) => (super.noSuchMethod( - Invocation.method( - #setWebViewClient, - [client], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setWebViewClient, [client]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future addJavaScriptChannel(_i2.JavaScriptChannel? channel) => (super.noSuchMethod( - Invocation.method( - #addJavaScriptChannel, - [channel], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#addJavaScriptChannel, [channel]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override - _i8.Future removeJavaScriptChannel(String? name) => (super.noSuchMethod( - Invocation.method( - #removeJavaScriptChannel, - [name], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + _i8.Future removeJavaScriptChannel(String? name) => + (super.noSuchMethod( + Invocation.method(#removeJavaScriptChannel, [name]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setDownloadListener(_i2.DownloadListener? listener) => (super.noSuchMethod( - Invocation.method( - #setDownloadListener, - [listener], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); + Invocation.method(#setDownloadListener, [listener]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); @override _i8.Future setWebChromeClient(_i2.WebChromeClient? client) => (super.noSuchMethod( - Invocation.method( - #setWebChromeClient, - [client], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future setBackgroundColor(int? color) => (super.noSuchMethod( - Invocation.method( - #setBackgroundColor, - [color], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future destroy() => (super.noSuchMethod( - Invocation.method( - #destroy, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i2.WebView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebView_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeWebView_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebView); - - @override - _i8.Future scrollTo( - int? x, - int? y, - ) => + Invocation.method(#setWebChromeClient, [client]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future setBackgroundColor(int? color) => (super.noSuchMethod( - Invocation.method( - #scrollTo, - [ - x, - y, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future scrollBy( - int? x, - int? y, - ) => + Invocation.method(#setBackgroundColor, [color]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future destroy() => + (super.noSuchMethod( + Invocation.method(#destroy, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i2.WebView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #scrollBy, - [ - x, - y, - ], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i8.Future<_i2.WebViewPoint> getScrollPosition() => (super.noSuchMethod( - Invocation.method( - #getScrollPosition, - [], - ), - returnValue: _i8.Future<_i2.WebViewPoint>.value(_FakeWebViewPoint_21( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), - returnValueForMissingStub: - _i8.Future<_i2.WebViewPoint>.value(_FakeWebViewPoint_21( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), - ) as _i8.Future<_i2.WebViewPoint>); + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebView_7( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeWebView_7( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebView); + + @override + _i8.Future scrollTo(int? x, int? y) => + (super.noSuchMethod( + Invocation.method(#scrollTo, [x, y]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future scrollBy(int? x, int? y) => + (super.noSuchMethod( + Invocation.method(#scrollBy, [x, y]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i8.Future<_i2.WebViewPoint> getScrollPosition() => + (super.noSuchMethod( + Invocation.method(#getScrollPosition, []), + returnValue: _i8.Future<_i2.WebViewPoint>.value( + _FakeWebViewPoint_21( + this, + Invocation.method(#getScrollPosition, []), + ), + ), + returnValueForMissingStub: _i8.Future<_i2.WebViewPoint>.value( + _FakeWebViewPoint_21( + this, + Invocation.method(#getScrollPosition, []), + ), + ), + ) + as _i8.Future<_i2.WebViewPoint>); + + @override + _i8.Future setOverScrollMode(_i2.OverScrollMode? mode) => + (super.noSuchMethod( + Invocation.method(#setOverScrollMode, [mode]), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); } /// A class which mocks [WebViewClient]. @@ -3122,51 +2683,48 @@ class MockWebView extends _i1.Mock implements _i2.WebView { /// See the documentation for Mockito's code generation for more information. class MockWebViewClient extends _i1.Mock implements _i2.WebViewClient { @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override _i8.Future setSynchronousReturnValueForShouldOverrideUrlLoading( - bool? value) => - (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForShouldOverrideUrlLoading, - [value], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i2.WebViewClient pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebViewClient_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeWebViewClient_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebViewClient); + bool? value, + ) => + (super.noSuchMethod( + Invocation.method( + #setSynchronousReturnValueForShouldOverrideUrlLoading, + [value], + ), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i2.WebViewClient pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebViewClient_1( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeWebViewClient_1( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebViewClient); } /// A class which mocks [WebStorage]. @@ -3174,47 +2732,41 @@ class MockWebViewClient extends _i1.Mock implements _i2.WebViewClient { /// See the documentation for Mockito's code generation for more information. class MockWebStorage extends _i1.Mock implements _i2.WebStorage { @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_12( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i8.Future deleteAllData() => (super.noSuchMethod( - Invocation.method( - #deleteAllData, - [], - ), - returnValue: _i8.Future.value(), - returnValueForMissingStub: _i8.Future.value(), - ) as _i8.Future); - - @override - _i2.WebStorage pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebStorage_11( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeWebStorage_11( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebStorage); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_12( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i8.Future deleteAllData() => + (super.noSuchMethod( + Invocation.method(#deleteAllData, []), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) + as _i8.Future); + + @override + _i2.WebStorage pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebStorage_11( + this, + Invocation.method(#pigeon_copy, []), + ), + returnValueForMissingStub: _FakeWebStorage_11( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebStorage); } diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart index 9a80b3c10f1..7d7591ad489 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter_android/test/android_webview_cookie_manager_test.dart. // Do not manually edit this file. @@ -21,6 +21,7 @@ import 'package:webview_flutter_platform_interface/webview_flutter_platform_inte // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -28,23 +29,13 @@ import 'package:webview_flutter_platform_interface/webview_flutter_platform_inte class _FakePigeonInstanceManager_0 extends _i1.SmartFake implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePigeonInstanceManager_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCookieManager_1 extends _i1.SmartFake implements _i2.CookieManager { - _FakeCookieManager_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCookieManager_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakePlatformWebViewControllerCreationParams_2 extends _i1.SmartFake @@ -52,30 +43,17 @@ class _FakePlatformWebViewControllerCreationParams_2 extends _i1.SmartFake _FakePlatformWebViewControllerCreationParams_2( Object parent, Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + ) : super(parent, parentInvocation); } class _FakeObject_3 extends _i1.SmartFake implements Object { - _FakeObject_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeObject_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeOffset_4 extends _i1.SmartFake implements _i4.Offset { - _FakeOffset_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeOffset_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [CookieManager]. @@ -87,39 +65,32 @@ class MockCookieManager extends _i1.Mock implements _i2.CookieManager { } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override - _i5.Future setCookie( - String? url, - String? value, - ) => + _i5.Future setCookie(String? url, String? value) => (super.noSuchMethod( - Invocation.method( - #setCookie, - [ - url, - value, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setCookie, [url, value]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future removeAllCookies() => (super.noSuchMethod( - Invocation.method( - #removeAllCookies, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + _i5.Future removeAllCookies() => + (super.noSuchMethod( + Invocation.method(#removeAllCookies, []), + returnValue: _i5.Future.value(false), + ) + as _i5.Future); @override _i5.Future setAcceptThirdPartyCookies( @@ -127,31 +98,22 @@ class MockCookieManager extends _i1.Mock implements _i2.CookieManager { bool? accept, ) => (super.noSuchMethod( - Invocation.method( - #setAcceptThirdPartyCookies, - [ - webView, - accept, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i2.CookieManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeCookieManager_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.CookieManager); + Invocation.method(#setAcceptThirdPartyCookies, [webView, accept]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i2.CookieManager pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeCookieManager_1( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.CookieManager); } /// A class which mocks [AndroidWebViewController]. @@ -164,391 +126,335 @@ class MockAndroidWebViewController extends _i1.Mock } @override - int get webViewIdentifier => (super.noSuchMethod( - Invocation.getter(#webViewIdentifier), - returnValue: 0, - ) as int); + int get webViewIdentifier => + (super.noSuchMethod(Invocation.getter(#webViewIdentifier), returnValue: 0) + as int); @override - _i3.PlatformWebViewControllerCreationParams get params => (super.noSuchMethod( - Invocation.getter(#params), - returnValue: _FakePlatformWebViewControllerCreationParams_2( - this, - Invocation.getter(#params), - ), - ) as _i3.PlatformWebViewControllerCreationParams); + _i3.PlatformWebViewControllerCreationParams get params => + (super.noSuchMethod( + Invocation.getter(#params), + returnValue: _FakePlatformWebViewControllerCreationParams_2( + this, + Invocation.getter(#params), + ), + ) + as _i3.PlatformWebViewControllerCreationParams); @override - _i5.Future setAllowFileAccess(bool? allow) => (super.noSuchMethod( - Invocation.method( - #setAllowFileAccess, - [allow], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future setAllowFileAccess(bool? allow) => + (super.noSuchMethod( + Invocation.method(#setAllowFileAccess, [allow]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future loadFile(String? absoluteFilePath) => (super.noSuchMethod( - Invocation.method( - #loadFile, - [absoluteFilePath], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future loadFile(String? absoluteFilePath) => + (super.noSuchMethod( + Invocation.method(#loadFile, [absoluteFilePath]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future loadFlutterAsset(String? key) => (super.noSuchMethod( - Invocation.method( - #loadFlutterAsset, - [key], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future loadFlutterAsset(String? key) => + (super.noSuchMethod( + Invocation.method(#loadFlutterAsset, [key]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future loadHtmlString( - String? html, { - String? baseUrl, - }) => + _i5.Future loadHtmlString(String? html, {String? baseUrl}) => (super.noSuchMethod( - Invocation.method( - #loadHtmlString, - [html], - {#baseUrl: baseUrl}, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#loadHtmlString, [html], {#baseUrl: baseUrl}), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future loadRequest(_i3.LoadRequestParams? params) => (super.noSuchMethod( - Invocation.method( - #loadRequest, - [params], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future currentUrl() => (super.noSuchMethod( - Invocation.method( - #currentUrl, - [], - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future canGoBack() => (super.noSuchMethod( - Invocation.method( - #canGoBack, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future canGoForward() => (super.noSuchMethod( - Invocation.method( - #canGoForward, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future goBack() => (super.noSuchMethod( - Invocation.method( - #goBack, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future goForward() => (super.noSuchMethod( - Invocation.method( - #goForward, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future reload() => (super.noSuchMethod( - Invocation.method( - #reload, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future clearCache() => (super.noSuchMethod( - Invocation.method( - #clearCache, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future clearLocalStorage() => (super.noSuchMethod( - Invocation.method( - #clearLocalStorage, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#loadRequest, [params]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future currentUrl() => + (super.noSuchMethod( + Invocation.method(#currentUrl, []), + returnValue: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future canGoBack() => + (super.noSuchMethod( + Invocation.method(#canGoBack, []), + returnValue: _i5.Future.value(false), + ) + as _i5.Future); + + @override + _i5.Future canGoForward() => + (super.noSuchMethod( + Invocation.method(#canGoForward, []), + returnValue: _i5.Future.value(false), + ) + as _i5.Future); + + @override + _i5.Future goBack() => + (super.noSuchMethod( + Invocation.method(#goBack, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future goForward() => + (super.noSuchMethod( + Invocation.method(#goForward, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future reload() => + (super.noSuchMethod( + Invocation.method(#reload, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future clearCache() => + (super.noSuchMethod( + Invocation.method(#clearCache, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future clearLocalStorage() => + (super.noSuchMethod( + Invocation.method(#clearLocalStorage, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setPlatformNavigationDelegate( - _i3.PlatformNavigationDelegate? handler) => + _i3.PlatformNavigationDelegate? handler, + ) => (super.noSuchMethod( - Invocation.method( - #setPlatformNavigationDelegate, - [handler], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setPlatformNavigationDelegate, [handler]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future runJavaScript(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScript, - [javaScript], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future runJavaScript(String? javaScript) => + (super.noSuchMethod( + Invocation.method(#runJavaScript, [javaScript]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future runJavaScriptReturningResult(String? javaScript) => (super.noSuchMethod( - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], - ), - returnValue: _i5.Future.value(_FakeObject_3( - this, - Invocation.method( - #runJavaScriptReturningResult, - [javaScript], - ), - )), - ) as _i5.Future); + Invocation.method(#runJavaScriptReturningResult, [javaScript]), + returnValue: _i5.Future.value( + _FakeObject_3( + this, + Invocation.method(#runJavaScriptReturningResult, [javaScript]), + ), + ), + ) + as _i5.Future); @override _i5.Future addJavaScriptChannel( - _i3.JavaScriptChannelParams? javaScriptChannelParams) => + _i3.JavaScriptChannelParams? javaScriptChannelParams, + ) => (super.noSuchMethod( - Invocation.method( - #addJavaScriptChannel, - [javaScriptChannelParams], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#addJavaScriptChannel, [javaScriptChannelParams]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future removeJavaScriptChannel(String? javaScriptChannelName) => (super.noSuchMethod( - Invocation.method( - #removeJavaScriptChannel, - [javaScriptChannelName], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#removeJavaScriptChannel, [ + javaScriptChannelName, + ]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future getTitle() => (super.noSuchMethod( - Invocation.method( - #getTitle, - [], - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); + _i5.Future getTitle() => + (super.noSuchMethod( + Invocation.method(#getTitle, []), + returnValue: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future scrollTo( - int? x, - int? y, - ) => + _i5.Future scrollTo(int? x, int? y) => (super.noSuchMethod( - Invocation.method( - #scrollTo, - [ - x, - y, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future scrollBy( - int? x, - int? y, - ) => + Invocation.method(#scrollTo, [x, y]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future scrollBy(int? x, int? y) => (super.noSuchMethod( - Invocation.method( - #scrollBy, - [ - x, - y, - ], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future<_i4.Offset> getScrollPosition() => (super.noSuchMethod( - Invocation.method( - #getScrollPosition, - [], - ), - returnValue: _i5.Future<_i4.Offset>.value(_FakeOffset_4( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), - ) as _i5.Future<_i4.Offset>); - - @override - _i5.Future enableZoom(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #enableZoom, - [enabled], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future setBackgroundColor(_i4.Color? color) => (super.noSuchMethod( - Invocation.method( - #setBackgroundColor, - [color], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#scrollBy, [x, y]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future<_i4.Offset> getScrollPosition() => + (super.noSuchMethod( + Invocation.method(#getScrollPosition, []), + returnValue: _i5.Future<_i4.Offset>.value( + _FakeOffset_4(this, Invocation.method(#getScrollPosition, [])), + ), + ) + as _i5.Future<_i4.Offset>); + + @override + _i5.Future enableZoom(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#enableZoom, [enabled]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future setBackgroundColor(_i4.Color? color) => + (super.noSuchMethod( + Invocation.method(#setBackgroundColor, [color]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setJavaScriptMode(_i3.JavaScriptMode? javaScriptMode) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptMode, - [javaScriptMode], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setJavaScriptMode, [javaScriptMode]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future setUserAgent(String? userAgent) => (super.noSuchMethod( - Invocation.method( - #setUserAgent, - [userAgent], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future setUserAgent(String? userAgent) => + (super.noSuchMethod( + Invocation.method(#setUserAgent, [userAgent]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setOnScrollPositionChange( - void Function(_i3.ScrollPositionChange)? onScrollPositionChange) => + void Function(_i3.ScrollPositionChange)? onScrollPositionChange, + ) => (super.noSuchMethod( - Invocation.method( - #setOnScrollPositionChange, - [onScrollPositionChange], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setOnScrollPositionChange, [ + onScrollPositionChange, + ]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setMediaPlaybackRequiresUserGesture(bool? require) => (super.noSuchMethod( - Invocation.method( - #setMediaPlaybackRequiresUserGesture, - [require], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future setTextZoom(int? textZoom) => (super.noSuchMethod( - Invocation.method( - #setTextZoom, - [textZoom], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future setAllowContentAccess(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setAllowContentAccess, - [enabled], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); - - @override - _i5.Future setGeolocationEnabled(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setGeolocationEnabled, - [enabled], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setMediaPlaybackRequiresUserGesture, [require]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future setTextZoom(int? textZoom) => + (super.noSuchMethod( + Invocation.method(#setTextZoom, [textZoom]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future setAllowContentAccess(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setAllowContentAccess, [enabled]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future setGeolocationEnabled(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setGeolocationEnabled, [enabled]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setOnShowFileSelector( - _i5.Future> Function(_i6.FileSelectorParams)? - onShowFileSelector) => + _i5.Future> Function(_i6.FileSelectorParams)? + onShowFileSelector, + ) => (super.noSuchMethod( - Invocation.method( - #setOnShowFileSelector, - [onShowFileSelector], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setOnShowFileSelector, [onShowFileSelector]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setOnPlatformPermissionRequest( - void Function(_i3.PlatformWebViewPermissionRequest)? - onPermissionRequest) => + void Function(_i3.PlatformWebViewPermissionRequest)? onPermissionRequest, + ) => (super.noSuchMethod( - Invocation.method( - #setOnPlatformPermissionRequest, - [onPermissionRequest], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setOnPlatformPermissionRequest, [ + onPermissionRequest, + ]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setGeolocationPermissionsPromptCallbacks({ @@ -556,17 +462,14 @@ class MockAndroidWebViewController extends _i1.Mock _i6.OnGeolocationPermissionsHidePrompt? onHidePrompt, }) => (super.noSuchMethod( - Invocation.method( - #setGeolocationPermissionsPromptCallbacks, - [], - { - #onShowPrompt: onShowPrompt, - #onHidePrompt: onHidePrompt, - }, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setGeolocationPermissionsPromptCallbacks, [], { + #onShowPrompt: onShowPrompt, + #onHidePrompt: onHidePrompt, + }), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setCustomWidgetCallbacks({ @@ -574,75 +477,82 @@ class MockAndroidWebViewController extends _i1.Mock required _i6.OnHideCustomWidgetCallback? onHideCustomWidget, }) => (super.noSuchMethod( - Invocation.method( - #setCustomWidgetCallbacks, - [], - { - #onShowCustomWidget: onShowCustomWidget, - #onHideCustomWidget: onHideCustomWidget, - }, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setCustomWidgetCallbacks, [], { + #onShowCustomWidget: onShowCustomWidget, + #onHideCustomWidget: onHideCustomWidget, + }), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setOnConsoleMessage( - void Function(_i3.JavaScriptConsoleMessage)? onConsoleMessage) => + void Function(_i3.JavaScriptConsoleMessage)? onConsoleMessage, + ) => (super.noSuchMethod( - Invocation.method( - #setOnConsoleMessage, - [onConsoleMessage], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setOnConsoleMessage, [onConsoleMessage]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future getUserAgent() => (super.noSuchMethod( - Invocation.method( - #getUserAgent, - [], - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); + _i5.Future getUserAgent() => + (super.noSuchMethod( + Invocation.method(#getUserAgent, []), + returnValue: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setOnJavaScriptAlertDialog( - _i5.Future Function(_i3.JavaScriptAlertDialogRequest)? - onJavaScriptAlertDialog) => + _i5.Future Function(_i3.JavaScriptAlertDialogRequest)? + onJavaScriptAlertDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptAlertDialog, - [onJavaScriptAlertDialog], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setOnJavaScriptAlertDialog, [ + onJavaScriptAlertDialog, + ]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setOnJavaScriptConfirmDialog( - _i5.Future Function(_i3.JavaScriptConfirmDialogRequest)? - onJavaScriptConfirmDialog) => + _i5.Future Function(_i3.JavaScriptConfirmDialogRequest)? + onJavaScriptConfirmDialog, + ) => (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptConfirmDialog, - [onJavaScriptConfirmDialog], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setOnJavaScriptConfirmDialog, [ + onJavaScriptConfirmDialog, + ]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future setOnJavaScriptTextInputDialog( - _i5.Future Function(_i3.JavaScriptTextInputDialogRequest)? - onJavaScriptTextInputDialog) => - (super.noSuchMethod( - Invocation.method( - #setOnJavaScriptTextInputDialog, - [onJavaScriptTextInputDialog], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future Function(_i3.JavaScriptTextInputDialogRequest)? + onJavaScriptTextInputDialog, + ) => + (super.noSuchMethod( + Invocation.method(#setOnJavaScriptTextInputDialog, [ + onJavaScriptTextInputDialog, + ]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future setOverScrollMode(_i3.WebViewOverScrollMode? mode) => + (super.noSuchMethod( + Invocation.method(#setOverScrollMode, [mode]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } diff --git a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart index 28c0d95b814..74d4075c1b5 100644 --- a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter_android/test/legacy/webview_android_cookie_manager_test.dart. // Do not manually edit this file. @@ -16,6 +16,7 @@ import 'package:webview_flutter_android/src/android_webkit.g.dart' as _i2; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -23,23 +24,13 @@ import 'package:webview_flutter_android/src/android_webkit.g.dart' as _i2; class _FakePigeonInstanceManager_0 extends _i1.SmartFake implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePigeonInstanceManager_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeCookieManager_1 extends _i1.SmartFake implements _i2.CookieManager { - _FakeCookieManager_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeCookieManager_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [CookieManager]. @@ -51,39 +42,32 @@ class MockCookieManager extends _i1.Mock implements _i2.CookieManager { } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override - _i3.Future setCookie( - String? url, - String? value, - ) => + _i3.Future setCookie(String? url, String? value) => (super.noSuchMethod( - Invocation.method( - #setCookie, - [ - url, - value, - ], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); + Invocation.method(#setCookie, [url, value]), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) + as _i3.Future); @override - _i3.Future removeAllCookies() => (super.noSuchMethod( - Invocation.method( - #removeAllCookies, - [], - ), - returnValue: _i3.Future.value(false), - ) as _i3.Future); + _i3.Future removeAllCookies() => + (super.noSuchMethod( + Invocation.method(#removeAllCookies, []), + returnValue: _i3.Future.value(false), + ) + as _i3.Future); @override _i3.Future setAcceptThirdPartyCookies( @@ -91,29 +75,20 @@ class MockCookieManager extends _i1.Mock implements _i2.CookieManager { bool? accept, ) => (super.noSuchMethod( - Invocation.method( - #setAcceptThirdPartyCookies, - [ - webView, - accept, - ], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); + Invocation.method(#setAcceptThirdPartyCookies, [webView, accept]), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) + as _i3.Future); @override - _i2.CookieManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeCookieManager_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.CookieManager); + _i2.CookieManager pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeCookieManager_1( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.CookieManager); } diff --git a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart index ff695040404..05dec46eeba 100644 --- a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in webview_flutter_android/test/legacy/webview_android_widget_test.dart. // Do not manually edit this file. @@ -22,6 +22,7 @@ import 'package:webview_flutter_platform_interface/src/webview_flutter_platform_ // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -29,129 +30,69 @@ import 'package:webview_flutter_platform_interface/src/webview_flutter_platform_ class _FakePigeonInstanceManager_0 extends _i1.SmartFake implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakePigeonInstanceManager_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeFlutterAssetManager_1 extends _i1.SmartFake implements _i2.FlutterAssetManager { - _FakeFlutterAssetManager_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeFlutterAssetManager_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebSettings_2 extends _i1.SmartFake implements _i2.WebSettings { - _FakeWebSettings_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebSettings_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebStorage_3 extends _i1.SmartFake implements _i2.WebStorage { - _FakeWebStorage_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebStorage_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebView_4 extends _i1.SmartFake implements _i2.WebView { - _FakeWebView_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebView_4(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebViewPoint_5 extends _i1.SmartFake implements _i2.WebViewPoint { - _FakeWebViewPoint_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebViewPoint_5(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebResourceRequest_6 extends _i1.SmartFake implements _i2.WebResourceRequest { - _FakeWebResourceRequest_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebResourceRequest_6(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeDownloadListener_7 extends _i1.SmartFake implements _i2.DownloadListener { - _FakeDownloadListener_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeDownloadListener_7(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeJavascriptChannelRegistry_8 extends _i1.SmartFake implements _i3.JavascriptChannelRegistry { - _FakeJavascriptChannelRegistry_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeJavascriptChannelRegistry_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeJavaScriptChannel_9 extends _i1.SmartFake implements _i2.JavaScriptChannel { - _FakeJavaScriptChannel_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeJavaScriptChannel_9(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebChromeClient_10 extends _i1.SmartFake implements _i2.WebChromeClient { - _FakeWebChromeClient_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebChromeClient_10(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeWebViewClient_11 extends _i1.SmartFake implements _i2.WebViewClient { - _FakeWebViewClient_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeWebViewClient_11(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [FlutterAssetManager]. @@ -164,53 +105,47 @@ class MockFlutterAssetManager extends _i1.Mock } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override - _i4.Future> list(String? path) => (super.noSuchMethod( - Invocation.method( - #list, - [path], - ), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + _i4.Future> list(String? path) => + (super.noSuchMethod( + Invocation.method(#list, [path]), + returnValue: _i4.Future>.value([]), + ) + as _i4.Future>); @override _i4.Future getAssetFilePathByName(String? name) => (super.noSuchMethod( - Invocation.method( - #getAssetFilePathByName, - [name], - ), - returnValue: _i4.Future.value(_i5.dummyValue( - this, - Invocation.method( - #getAssetFilePathByName, - [name], - ), - )), - ) as _i4.Future); - - @override - _i2.FlutterAssetManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeFlutterAssetManager_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.FlutterAssetManager); + Invocation.method(#getAssetFilePathByName, [name]), + returnValue: _i4.Future.value( + _i5.dummyValue( + this, + Invocation.method(#getAssetFilePathByName, [name]), + ), + ), + ) + as _i4.Future); + + @override + _i2.FlutterAssetManager pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeFlutterAssetManager_1( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.FlutterAssetManager); } /// A class which mocks [WebSettings]. @@ -222,198 +157,176 @@ class MockWebSettings extends _i1.Mock implements _i2.WebSettings { } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override - _i4.Future setDomStorageEnabled(bool? flag) => (super.noSuchMethod( - Invocation.method( - #setDomStorageEnabled, - [flag], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future setDomStorageEnabled(bool? flag) => + (super.noSuchMethod( + Invocation.method(#setDomStorageEnabled, [flag]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setJavaScriptCanOpenWindowsAutomatically(bool? flag) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptCanOpenWindowsAutomatically, - [flag], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setJavaScriptCanOpenWindowsAutomatically, [ + flag, + ]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setSupportMultipleWindows(bool? support) => (super.noSuchMethod( - Invocation.method( - #setSupportMultipleWindows, - [support], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setSupportMultipleWindows, [support]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override - _i4.Future setJavaScriptEnabled(bool? flag) => (super.noSuchMethod( - Invocation.method( - #setJavaScriptEnabled, - [flag], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future setJavaScriptEnabled(bool? flag) => + (super.noSuchMethod( + Invocation.method(#setJavaScriptEnabled, [flag]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setUserAgentString(String? userAgentString) => (super.noSuchMethod( - Invocation.method( - #setUserAgentString, - [userAgentString], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setUserAgentString, [userAgentString]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setMediaPlaybackRequiresUserGesture(bool? require) => (super.noSuchMethod( - Invocation.method( - #setMediaPlaybackRequiresUserGesture, - [require], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setMediaPlaybackRequiresUserGesture, [require]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override - _i4.Future setSupportZoom(bool? support) => (super.noSuchMethod( - Invocation.method( - #setSupportZoom, - [support], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future setSupportZoom(bool? support) => + (super.noSuchMethod( + Invocation.method(#setSupportZoom, [support]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setLoadWithOverviewMode(bool? overview) => (super.noSuchMethod( - Invocation.method( - #setLoadWithOverviewMode, - [overview], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setUseWideViewPort(bool? use) => (super.noSuchMethod( - Invocation.method( - #setUseWideViewPort, - [use], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setDisplayZoomControls(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setDisplayZoomControls, - [enabled], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setBuiltInZoomControls(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setBuiltInZoomControls, - [enabled], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setAllowFileAccess(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setAllowFileAccess, - [enabled], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setAllowContentAccess(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setAllowContentAccess, - [enabled], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setGeolocationEnabled(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setGeolocationEnabled, - [enabled], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setTextZoom(int? textZoom) => (super.noSuchMethod( - Invocation.method( - #setTextZoom, - [textZoom], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future getUserAgentString() => (super.noSuchMethod( - Invocation.method( - #getUserAgentString, - [], - ), - returnValue: _i4.Future.value(_i5.dummyValue( - this, - Invocation.method( - #getUserAgentString, - [], - ), - )), - ) as _i4.Future); - - @override - _i2.WebSettings pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebSettings_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebSettings); + Invocation.method(#setLoadWithOverviewMode, [overview]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setUseWideViewPort(bool? use) => + (super.noSuchMethod( + Invocation.method(#setUseWideViewPort, [use]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setDisplayZoomControls(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setDisplayZoomControls, [enabled]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setBuiltInZoomControls(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setBuiltInZoomControls, [enabled]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setAllowFileAccess(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setAllowFileAccess, [enabled]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setAllowContentAccess(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setAllowContentAccess, [enabled]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setGeolocationEnabled(bool? enabled) => + (super.noSuchMethod( + Invocation.method(#setGeolocationEnabled, [enabled]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setTextZoom(int? textZoom) => + (super.noSuchMethod( + Invocation.method(#setTextZoom, [textZoom]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future getUserAgentString() => + (super.noSuchMethod( + Invocation.method(#getUserAgentString, []), + returnValue: _i4.Future.value( + _i5.dummyValue( + this, + Invocation.method(#getUserAgentString, []), + ), + ), + ) + as _i4.Future); + + @override + _i2.WebSettings pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebSettings_2( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebSettings); } /// A class which mocks [WebStorage]. @@ -425,38 +338,35 @@ class MockWebStorage extends _i1.Mock implements _i2.WebStorage { } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i4.Future deleteAllData() => (super.noSuchMethod( - Invocation.method( - #deleteAllData, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i2.WebStorage pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebStorage_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebStorage); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i4.Future deleteAllData() => + (super.noSuchMethod( + Invocation.method(#deleteAllData, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i2.WebStorage pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebStorage_3( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebStorage); } /// A class which mocks [WebView]. @@ -468,56 +378,43 @@ class MockWebView extends _i1.Mock implements _i2.WebView { } @override - _i2.WebSettings get settings => (super.noSuchMethod( - Invocation.getter(#settings), - returnValue: _FakeWebSettings_2( - this, - Invocation.getter(#settings), - ), - ) as _i2.WebSettings); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.WebSettings pigeonVar_settings() => (super.noSuchMethod( - Invocation.method( - #pigeonVar_settings, - [], - ), - returnValue: _FakeWebSettings_2( - this, - Invocation.method( - #pigeonVar_settings, - [], - ), - ), - ) as _i2.WebSettings); - - @override - _i4.Future loadData( - String? data, - String? mimeType, - String? encoding, - ) => + _i2.WebSettings get settings => + (super.noSuchMethod( + Invocation.getter(#settings), + returnValue: _FakeWebSettings_2(this, Invocation.getter(#settings)), + ) + as _i2.WebSettings); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.method( - #loadData, - [ - data, - mimeType, - encoding, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i2.WebSettings pigeonVar_settings() => + (super.noSuchMethod( + Invocation.method(#pigeonVar_settings, []), + returnValue: _FakeWebSettings_2( + this, + Invocation.method(#pigeonVar_settings, []), + ), + ) + as _i2.WebSettings); + + @override + _i4.Future loadData(String? data, String? mimeType, String? encoding) => + (super.noSuchMethod( + Invocation.method(#loadData, [data, mimeType, encoding]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future loadDataWithBaseUrl( @@ -528,277 +425,225 @@ class MockWebView extends _i1.Mock implements _i2.WebView { String? historyUrl, ) => (super.noSuchMethod( - Invocation.method( - #loadDataWithBaseUrl, - [ - baseUrl, - data, - mimeType, - encoding, - historyUrl, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future loadUrl( - String? url, - Map? headers, - ) => + Invocation.method(#loadDataWithBaseUrl, [ + baseUrl, + data, + mimeType, + encoding, + historyUrl, + ]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future loadUrl(String? url, Map? headers) => (super.noSuchMethod( - Invocation.method( - #loadUrl, - [ - url, - headers, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future postUrl( - String? url, - _i6.Uint8List? data, - ) => + Invocation.method(#loadUrl, [url, headers]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future postUrl(String? url, _i6.Uint8List? data) => + (super.noSuchMethod( + Invocation.method(#postUrl, [url, data]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future getUrl() => + (super.noSuchMethod( + Invocation.method(#getUrl, []), + returnValue: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future canGoBack() => + (super.noSuchMethod( + Invocation.method(#canGoBack, []), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future canGoForward() => + (super.noSuchMethod( + Invocation.method(#canGoForward, []), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future goBack() => + (super.noSuchMethod( + Invocation.method(#goBack, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future goForward() => + (super.noSuchMethod( + Invocation.method(#goForward, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future reload() => (super.noSuchMethod( - Invocation.method( - #postUrl, - [ - url, - data, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future getUrl() => (super.noSuchMethod( - Invocation.method( - #getUrl, - [], - ), - returnValue: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future canGoBack() => (super.noSuchMethod( - Invocation.method( - #canGoBack, - [], - ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); - - @override - _i4.Future canGoForward() => (super.noSuchMethod( - Invocation.method( - #canGoForward, - [], - ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); - - @override - _i4.Future goBack() => (super.noSuchMethod( - Invocation.method( - #goBack, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future goForward() => (super.noSuchMethod( - Invocation.method( - #goForward, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future reload() => (super.noSuchMethod( - Invocation.method( - #reload, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future clearCache(bool? includeDiskFiles) => (super.noSuchMethod( - Invocation.method( - #clearCache, - [includeDiskFiles], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#reload, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future clearCache(bool? includeDiskFiles) => + (super.noSuchMethod( + Invocation.method(#clearCache, [includeDiskFiles]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future evaluateJavascript(String? javascriptString) => (super.noSuchMethod( - Invocation.method( - #evaluateJavascript, - [javascriptString], - ), - returnValue: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#evaluateJavascript, [javascriptString]), + returnValue: _i4.Future.value(), + ) + as _i4.Future); @override - _i4.Future getTitle() => (super.noSuchMethod( - Invocation.method( - #getTitle, - [], - ), - returnValue: _i4.Future.value(), - ) as _i4.Future); + _i4.Future getTitle() => + (super.noSuchMethod( + Invocation.method(#getTitle, []), + returnValue: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setWebViewClient(_i2.WebViewClient? client) => (super.noSuchMethod( - Invocation.method( - #setWebViewClient, - [client], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setWebViewClient, [client]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future addJavaScriptChannel(_i2.JavaScriptChannel? channel) => (super.noSuchMethod( - Invocation.method( - #addJavaScriptChannel, - [channel], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#addJavaScriptChannel, [channel]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override - _i4.Future removeJavaScriptChannel(String? name) => (super.noSuchMethod( - Invocation.method( - #removeJavaScriptChannel, - [name], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + _i4.Future removeJavaScriptChannel(String? name) => + (super.noSuchMethod( + Invocation.method(#removeJavaScriptChannel, [name]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setDownloadListener(_i2.DownloadListener? listener) => (super.noSuchMethod( - Invocation.method( - #setDownloadListener, - [listener], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setDownloadListener, [listener]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setWebChromeClient(_i2.WebChromeClient? client) => (super.noSuchMethod( - Invocation.method( - #setWebChromeClient, - [client], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future setBackgroundColor(int? color) => (super.noSuchMethod( - Invocation.method( - #setBackgroundColor, - [color], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future destroy() => (super.noSuchMethod( - Invocation.method( - #destroy, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i2.WebView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebView_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebView); - - @override - _i4.Future scrollTo( - int? x, - int? y, - ) => + Invocation.method(#setWebChromeClient, [client]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future setBackgroundColor(int? color) => (super.noSuchMethod( - Invocation.method( - #scrollTo, - [ - x, - y, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future scrollBy( - int? x, - int? y, - ) => + Invocation.method(#setBackgroundColor, [color]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future destroy() => + (super.noSuchMethod( + Invocation.method(#destroy, []), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i2.WebView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #scrollBy, - [ - x, - y, - ], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future<_i2.WebViewPoint> getScrollPosition() => (super.noSuchMethod( - Invocation.method( - #getScrollPosition, - [], - ), - returnValue: _i4.Future<_i2.WebViewPoint>.value(_FakeWebViewPoint_5( - this, - Invocation.method( - #getScrollPosition, - [], - ), - )), - ) as _i4.Future<_i2.WebViewPoint>); + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebView_4( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebView); + + @override + _i4.Future scrollTo(int? x, int? y) => + (super.noSuchMethod( + Invocation.method(#scrollTo, [x, y]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future scrollBy(int? x, int? y) => + (super.noSuchMethod( + Invocation.method(#scrollBy, [x, y]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i4.Future<_i2.WebViewPoint> getScrollPosition() => + (super.noSuchMethod( + Invocation.method(#getScrollPosition, []), + returnValue: _i4.Future<_i2.WebViewPoint>.value( + _FakeWebViewPoint_5( + this, + Invocation.method(#getScrollPosition, []), + ), + ), + ) + as _i4.Future<_i2.WebViewPoint>); + + @override + _i4.Future setOverScrollMode(_i2.OverScrollMode? mode) => + (super.noSuchMethod( + Invocation.method(#setOverScrollMode, [mode]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); } /// A class which mocks [WebResourceRequest]. @@ -811,58 +656,58 @@ class MockWebResourceRequest extends _i1.Mock } @override - String get url => (super.noSuchMethod( - Invocation.getter(#url), - returnValue: _i5.dummyValue( - this, - Invocation.getter(#url), - ), - ) as String); - - @override - bool get isForMainFrame => (super.noSuchMethod( - Invocation.getter(#isForMainFrame), - returnValue: false, - ) as bool); - - @override - bool get hasGesture => (super.noSuchMethod( - Invocation.getter(#hasGesture), - returnValue: false, - ) as bool); - - @override - String get method => (super.noSuchMethod( - Invocation.getter(#method), - returnValue: _i5.dummyValue( - this, - Invocation.getter(#method), - ), - ) as String); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.WebResourceRequest pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebResourceRequest_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebResourceRequest); + String get url => + (super.noSuchMethod( + Invocation.getter(#url), + returnValue: _i5.dummyValue(this, Invocation.getter(#url)), + ) + as String); + + @override + bool get isForMainFrame => + (super.noSuchMethod( + Invocation.getter(#isForMainFrame), + returnValue: false, + ) + as bool); + + @override + bool get hasGesture => + (super.noSuchMethod(Invocation.getter(#hasGesture), returnValue: false) + as bool); + + @override + String get method => + (super.noSuchMethod( + Invocation.getter(#method), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#method), + ), + ) + as String); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i2.WebResourceRequest pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebResourceRequest_6( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebResourceRequest); } /// A class which mocks [DownloadListener]. @@ -874,55 +719,50 @@ class MockDownloadListener extends _i1.Mock implements _i2.DownloadListener { } @override - void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - ) get onDownloadStart => (super.noSuchMethod( - Invocation.getter(#onDownloadStart), - returnValue: ( - _i2.DownloadListener pigeon_instance, - String url, - String userAgent, - String contentDisposition, - String mimetype, - int contentLength, - ) {}, - ) as void Function( - _i2.DownloadListener, - String, - String, - String, - String, - int, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.DownloadListener pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeDownloadListener_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.DownloadListener); + void Function(_i2.DownloadListener, String, String, String, String, int) + get onDownloadStart => + (super.noSuchMethod( + Invocation.getter(#onDownloadStart), + returnValue: + ( + _i2.DownloadListener pigeon_instance, + String url, + String userAgent, + String contentDisposition, + String mimetype, + int contentLength, + ) {}, + ) + as void Function( + _i2.DownloadListener, + String, + String, + String, + String, + int, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i2.DownloadListener pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeDownloadListener_7( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.DownloadListener); } /// A class which mocks [WebViewAndroidJavaScriptChannel]. @@ -937,60 +777,55 @@ class MockWebViewAndroidJavaScriptChannel extends _i1.Mock @override _i3.JavascriptChannelRegistry get javascriptChannelRegistry => (super.noSuchMethod( - Invocation.getter(#javascriptChannelRegistry), - returnValue: _FakeJavascriptChannelRegistry_8( - this, - Invocation.getter(#javascriptChannelRegistry), - ), - ) as _i3.JavascriptChannelRegistry); - - @override - String get channelName => (super.noSuchMethod( - Invocation.getter(#channelName), - returnValue: _i5.dummyValue( - this, - Invocation.getter(#channelName), - ), - ) as String); - - @override - void Function( - _i2.JavaScriptChannel, - String, - ) get postMessage => (super.noSuchMethod( - Invocation.getter(#postMessage), - returnValue: ( - _i2.JavaScriptChannel pigeon_instance, - String message, - ) {}, - ) as void Function( - _i2.JavaScriptChannel, - String, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.JavaScriptChannel pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeJavaScriptChannel_9( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.JavaScriptChannel); + Invocation.getter(#javascriptChannelRegistry), + returnValue: _FakeJavascriptChannelRegistry_8( + this, + Invocation.getter(#javascriptChannelRegistry), + ), + ) + as _i3.JavascriptChannelRegistry); + + @override + String get channelName => + (super.noSuchMethod( + Invocation.getter(#channelName), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#channelName), + ), + ) + as String); + + @override + void Function(_i2.JavaScriptChannel, String) get postMessage => + (super.noSuchMethod( + Invocation.getter(#postMessage), + returnValue: + (_i2.JavaScriptChannel pigeon_instance, String message) {}, + ) + as void Function(_i2.JavaScriptChannel, String)); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); + + @override + _i2.JavaScriptChannel pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeJavaScriptChannel_9( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.JavaScriptChannel); } /// A class which mocks [WebChromeClient]. @@ -1002,83 +837,77 @@ class MockWebChromeClient extends _i1.Mock implements _i2.WebChromeClient { } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override _i4.Future setSynchronousReturnValueForOnShowFileChooser(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnShowFileChooser, - [value], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setSynchronousReturnValueForOnShowFileChooser, [ + value, + ]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setSynchronousReturnValueForOnConsoleMessage(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnConsoleMessage, - [value], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setSynchronousReturnValueForOnConsoleMessage, [ + value, + ]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setSynchronousReturnValueForOnJsAlert(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnJsAlert, - [value], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setSynchronousReturnValueForOnJsAlert, [value]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setSynchronousReturnValueForOnJsConfirm(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnJsConfirm, - [value], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setSynchronousReturnValueForOnJsConfirm, [ + value, + ]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); @override _i4.Future setSynchronousReturnValueForOnJsPrompt(bool? value) => (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForOnJsPrompt, - [value], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i2.WebChromeClient pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebChromeClient_10( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebChromeClient); + Invocation.method(#setSynchronousReturnValueForOnJsPrompt, [value]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i2.WebChromeClient pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebChromeClient_10( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebChromeClient); } /// A class which mocks [WebViewClient]. @@ -1090,40 +919,40 @@ class MockWebViewClient extends _i1.Mock implements _i2.WebViewClient { } @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); + _i2.PigeonInstanceManager get pigeon_instanceManager => + (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) + as _i2.PigeonInstanceManager); @override _i4.Future setSynchronousReturnValueForShouldOverrideUrlLoading( - bool? value) => - (super.noSuchMethod( - Invocation.method( - #setSynchronousReturnValueForShouldOverrideUrlLoading, - [value], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i2.WebViewClient pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeWebViewClient_11( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.WebViewClient); + bool? value, + ) => + (super.noSuchMethod( + Invocation.method( + #setSynchronousReturnValueForShouldOverrideUrlLoading, + [value], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); + + @override + _i2.WebViewClient pigeon_copy() => + (super.noSuchMethod( + Invocation.method(#pigeon_copy, []), + returnValue: _FakeWebViewClient_11( + this, + Invocation.method(#pigeon_copy, []), + ), + ) + as _i2.WebViewClient); } /// A class which mocks [JavascriptChannelRegistry]. @@ -1136,34 +965,24 @@ class MockJavascriptChannelRegistry extends _i1.Mock } @override - Map get channels => (super.noSuchMethod( - Invocation.getter(#channels), - returnValue: {}, - ) as Map); + Map get channels => + (super.noSuchMethod( + Invocation.getter(#channels), + returnValue: {}, + ) + as Map); @override - void onJavascriptChannelMessage( - String? channel, - String? message, - ) => + void onJavascriptChannelMessage(String? channel, String? message) => super.noSuchMethod( - Invocation.method( - #onJavascriptChannelMessage, - [ - channel, - message, - ], - ), + Invocation.method(#onJavascriptChannelMessage, [channel, message]), returnValueForMissingStub: null, ); @override void updateJavascriptChannelsFromSet(Set<_i3.JavascriptChannel>? channels) => super.noSuchMethod( - Invocation.method( - #updateJavascriptChannelsFromSet, - [channels], - ), + Invocation.method(#updateJavascriptChannelsFromSet, [channels]), returnValueForMissingStub: null, ); } @@ -1183,52 +1002,37 @@ class MockWebViewPlatformCallbacksHandler extends _i1.Mock required bool? isForMainFrame, }) => (super.noSuchMethod( - Invocation.method( - #onNavigationRequest, - [], - { - #url: url, - #isForMainFrame: isForMainFrame, - }, - ), - returnValue: _i4.Future.value(false), - ) as _i4.FutureOr); + Invocation.method(#onNavigationRequest, [], { + #url: url, + #isForMainFrame: isForMainFrame, + }), + returnValue: _i4.Future.value(false), + ) + as _i4.FutureOr); @override void onPageStarted(String? url) => super.noSuchMethod( - Invocation.method( - #onPageStarted, - [url], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onPageStarted, [url]), + returnValueForMissingStub: null, + ); @override void onPageFinished(String? url) => super.noSuchMethod( - Invocation.method( - #onPageFinished, - [url], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onPageFinished, [url]), + returnValueForMissingStub: null, + ); @override void onProgress(int? progress) => super.noSuchMethod( - Invocation.method( - #onProgress, - [progress], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onProgress, [progress]), + returnValueForMissingStub: null, + ); @override void onWebResourceError(_i3.WebResourceError? error) => super.noSuchMethod( - Invocation.method( - #onWebResourceError, - [error], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#onWebResourceError, [error]), + returnValueForMissingStub: null, + ); } /// A class which mocks [WebViewProxy]. @@ -1240,94 +1044,62 @@ class MockWebViewProxy extends _i1.Mock implements _i7.WebViewProxy { } @override - _i2.WebView createWebView() => (super.noSuchMethod( - Invocation.method( - #createWebView, - [], - ), - returnValue: _FakeWebView_4( - this, - Invocation.method( - #createWebView, - [], - ), - ), - ) as _i2.WebView); + _i2.WebView createWebView() => + (super.noSuchMethod( + Invocation.method(#createWebView, []), + returnValue: _FakeWebView_4( + this, + Invocation.method(#createWebView, []), + ), + ) + as _i2.WebView); @override _i2.WebViewClient createWebViewClient({ - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageStarted, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? onPageFinished, + void Function(_i2.WebViewClient, _i2.WebView, String)? onPageStarted, + void Function(_i2.WebViewClient, _i2.WebView, String)? onPageFinished, void Function( _i2.WebViewClient, _i2.WebView, _i2.WebResourceRequest, _i2.WebResourceError, - )? onReceivedRequestError, - void Function( - _i2.WebViewClient, - _i2.WebView, - int, - String, - String, - )? onReceivedError, - void Function( - _i2.WebViewClient, - _i2.WebView, - _i2.WebResourceRequest, - )? requestLoading, - void Function( - _i2.WebViewClient, - _i2.WebView, - String, - )? urlLoading, + )? + onReceivedRequestError, + void Function(_i2.WebViewClient, _i2.WebView, int, String, String)? + onReceivedError, + void Function(_i2.WebViewClient, _i2.WebView, _i2.WebResourceRequest)? + requestLoading, + void Function(_i2.WebViewClient, _i2.WebView, String)? urlLoading, }) => (super.noSuchMethod( - Invocation.method( - #createWebViewClient, - [], - { - #onPageStarted: onPageStarted, - #onPageFinished: onPageFinished, - #onReceivedRequestError: onReceivedRequestError, - #onReceivedError: onReceivedError, - #requestLoading: requestLoading, - #urlLoading: urlLoading, - }, - ), - returnValue: _FakeWebViewClient_11( - this, - Invocation.method( - #createWebViewClient, - [], - { + Invocation.method(#createWebViewClient, [], { #onPageStarted: onPageStarted, #onPageFinished: onPageFinished, #onReceivedRequestError: onReceivedRequestError, #onReceivedError: onReceivedError, #requestLoading: requestLoading, #urlLoading: urlLoading, - }, - ), - ), - ) as _i2.WebViewClient); + }), + returnValue: _FakeWebViewClient_11( + this, + Invocation.method(#createWebViewClient, [], { + #onPageStarted: onPageStarted, + #onPageFinished: onPageFinished, + #onReceivedRequestError: onReceivedRequestError, + #onReceivedError: onReceivedError, + #requestLoading: requestLoading, + #urlLoading: urlLoading, + }), + ), + ) + as _i2.WebViewClient); @override _i4.Future setWebContentsDebuggingEnabled(bool? enabled) => (super.noSuchMethod( - Invocation.method( - #setWebContentsDebuggingEnabled, - [enabled], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + Invocation.method(#setWebContentsDebuggingEnabled, [enabled]), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) + as _i4.Future); } From 0d0df6117ed104e2e84a9ca8f79eac085e6465ed Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Mon, 7 Apr 2025 20:44:04 -0400 Subject: [PATCH 08/15] ios tests --- .../test/webkit_webview_controller_test.dart | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.dart index e6a350de4e6..30d3ec7c03c 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.dart @@ -1383,6 +1383,28 @@ void main() { expect(urlChange.url, null); }); + test('setOverScrollMode', () async { + final MockUIScrollView mockScrollView = MockUIScrollView(); + + final WebKitWebViewController controller = createControllerWithMocks( + mockScrollView: mockScrollView, + ); + + await controller.setOverScrollMode(WebViewOverScrollMode.always); + verify(mockScrollView.setBounces(true)); + + clearInteractions(mockScrollView); + await controller + .setOverScrollMode(WebViewOverScrollMode.ifContentScrolls); + verify(mockScrollView.setBounces(true)); + verify(mockScrollView.setAlwaysBounceVertical(false)); + verify(mockScrollView.setAlwaysBounceHorizontal(false)); + + clearInteractions(mockScrollView); + await controller.setOverScrollMode(WebViewOverScrollMode.never); + verify(mockScrollView.setBounces(false)); + }); + test('webViewIdentifier', () { final PigeonInstanceManager instanceManager = TestInstanceManager(); From b297998a1a13975892edb4c074dfcaeb92515f1c Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Wed, 16 Apr 2025 13:51:10 -0400 Subject: [PATCH 09/15] add destroy back in --- .../flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt index 7157f5623e7..9aa564e9eb9 100644 --- a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt +++ b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt @@ -121,6 +121,9 @@ class AndroidWebkitLibraryPigeonInstanceManager( */ fun remove(identifier: Long): T? { logWarningIfFinalizationListenerHasStopped() + if (instance is WebViewProxyApi.WebViewPlatformView) { + instance.destroy() + } return strongInstances.remove(identifier) as T? } From fadbd3e6d2fd17d2a91544de4e984ce3807727bf Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Wed, 16 Apr 2025 13:52:34 -0400 Subject: [PATCH 10/15] add default behavior --- .../webview_flutter/lib/src/webview_controller.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart b/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart index e357d32ad7c..6b720c9c753 100644 --- a/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart +++ b/packages/webview_flutter/webview_flutter/lib/src/webview_controller.dart @@ -407,6 +407,8 @@ class WebViewController { } /// Sets the over-scroll mode for the WebView. + /// + /// Default behavior is platform dependent. Future setOverScrollMode(WebViewOverScrollMode mode) async { return platform.setOverScrollMode(mode); } From 5b45350a8d64ba23c736087e014cfa7283d5e39d Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Wed, 16 Apr 2025 14:11:40 -0400 Subject: [PATCH 11/15] forgot value --- .../io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt index 9aa564e9eb9..fdbbd259af3 100644 --- a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt +++ b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt @@ -121,6 +121,7 @@ class AndroidWebkitLibraryPigeonInstanceManager( */ fun remove(identifier: Long): T? { logWarningIfFinalizationListenerHasStopped() + val instance: Any? = getInstance(identifier) if (instance is WebViewProxyApi.WebViewPlatformView) { instance.destroy() } From e90b60a60eb6d411694219905b8512469a8e0ae5 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:17:17 -0400 Subject: [PATCH 12/15] version bump --- .../webview_flutter/webview_flutter/CHANGELOG.md | 3 ++- .../webview_flutter/example/pubspec.yaml | 12 +++--------- .../webview_flutter/webview_flutter/pubspec.yaml | 14 ++++---------- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/packages/webview_flutter/webview_flutter/CHANGELOG.md b/packages/webview_flutter/webview_flutter/CHANGELOG.md index 1d95b3b902a..e40c3172246 100644 --- a/packages/webview_flutter/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter/CHANGELOG.md @@ -1,5 +1,6 @@ -## NEXT +## 4.11.0 +* Adds support to set the over-scroll mode for the WebView. See `AndroidWebViewController.setOverScrollMode`. * Updates minimum supported SDK version to Flutter 3.22/Dart 3.4. ## 4.10.0 diff --git a/packages/webview_flutter/webview_flutter/example/pubspec.yaml b/packages/webview_flutter/webview_flutter/example/pubspec.yaml index d964e3ab605..5c0fb7ecf99 100644 --- a/packages/webview_flutter/webview_flutter/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/example/pubspec.yaml @@ -17,8 +17,8 @@ dependencies: # The example app is bundled with the plugin so we use a path dependency on # the parent directory to use the current plugin's version. path: ../ - webview_flutter_android: ^4.0.0 - webview_flutter_wkwebview: ^3.13.0 + webview_flutter_android: ^4.4.0 + webview_flutter_wkwebview: ^3.19.0 dev_dependencies: build_runner: ^2.1.5 @@ -27,7 +27,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - webview_flutter_platform_interface: ^2.10.0 + webview_flutter_platform_interface: ^2.11.0 flutter: uses-material-design: true @@ -36,9 +36,3 @@ flutter: - assets/sample_video.mp4 - assets/www/index.html - assets/www/styles/style.css -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_android: {path: ../../../../packages/webview_flutter/webview_flutter_android} - webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} - webview_flutter_wkwebview: {path: ../../../../packages/webview_flutter/webview_flutter_wkwebview} diff --git a/packages/webview_flutter/webview_flutter/pubspec.yaml b/packages/webview_flutter/webview_flutter/pubspec.yaml index 323cb0e1022..018503b632c 100644 --- a/packages/webview_flutter/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/pubspec.yaml @@ -2,7 +2,7 @@ name: webview_flutter description: A Flutter plugin that provides a WebView widget backed by the system webview. repository: https://github.com/flutter/packages/tree/main/packages/webview_flutter/webview_flutter issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22 -version: 4.10.0 +version: 4.11.0 environment: sdk: ^3.5.0 @@ -21,9 +21,9 @@ flutter: dependencies: flutter: sdk: flutter - webview_flutter_android: ^4.0.0 - webview_flutter_platform_interface: ^2.10.0 - webview_flutter_wkwebview: ^3.15.0 + webview_flutter_android: ^4.4.0 + webview_flutter_platform_interface: ^2.11.0 + webview_flutter_wkwebview: ^3.19.0 dev_dependencies: build_runner: ^2.1.5 @@ -36,9 +36,3 @@ topics: - html - webview - webview-flutter -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_android: {path: ../../../packages/webview_flutter/webview_flutter_android} - webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} - webview_flutter_wkwebview: {path: ../../../packages/webview_flutter/webview_flutter_wkwebview} From c036f7d54082896caa65b53d06b3fda651c0f75c Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:19:05 -0400 Subject: [PATCH 13/15] fix changelog --- packages/webview_flutter/webview_flutter/CHANGELOG.md | 2 +- .../webview_flutter_android/example/pubspec.yaml | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/webview_flutter/webview_flutter/CHANGELOG.md b/packages/webview_flutter/webview_flutter/CHANGELOG.md index e40c3172246..efe812996be 100644 --- a/packages/webview_flutter/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter/CHANGELOG.md @@ -1,6 +1,6 @@ ## 4.11.0 -* Adds support to set the over-scroll mode for the WebView. See `AndroidWebViewController.setOverScrollMode`. +* Adds support to set the over-scroll mode for the WebView. See `WebViewController.setOverScrollMode`. * Updates minimum supported SDK version to Flutter 3.22/Dart 3.4. ## 4.10.0 diff --git a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml index 0fb5a2af64a..c22d7dc7022 100644 --- a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: # The example app is bundled with the plugin so we use a path dependency on # the parent directory to use the current plugin's version. path: ../ - webview_flutter_platform_interface: ^2.11.0 + webview_flutter_platform_interface: ^2.10.0 dev_dependencies: espresso: ^0.4.0 @@ -33,7 +33,3 @@ flutter: - assets/sample_video.mp4 - assets/www/index.html - assets/www/styles/style.css -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} From ffc8dd4424b5d270b6ec7c5122784e9ea497ae3b Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:20:11 -0400 Subject: [PATCH 14/15] pubspec changes --- .../webview_flutter_android/example/pubspec.yaml | 2 +- .../webview_flutter/webview_flutter_android/pubspec.yaml | 4 ---- .../webview_flutter_wkwebview/example/pubspec.yaml | 5 ----- .../webview_flutter/webview_flutter_wkwebview/pubspec.yaml | 4 ---- 4 files changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml index c22d7dc7022..de6c69e7806 100644 --- a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: # The example app is bundled with the plugin so we use a path dependency on # the parent directory to use the current plugin's version. path: ../ - webview_flutter_platform_interface: ^2.10.0 + webview_flutter_platform_interface: ^2.11.0 dev_dependencies: espresso: ^0.4.0 diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml index a004cda6077..d58ee58848a 100644 --- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml @@ -33,7 +33,3 @@ topics: - html - webview - webview-flutter -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml index 6be9ba8b464..fa7f2114200 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml @@ -34,8 +34,3 @@ flutter: - assets/www/styles/style.css # Test certificate used to create a test native `SecTrust`. - assets/test_cert.der - -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_platform_interface: {path: ../../../../packages/webview_flutter/webview_flutter_platform_interface} diff --git a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml index ab14719b0fa..535e997a026 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml @@ -38,7 +38,3 @@ topics: - html - webview - webview-flutter -# FOR TESTING AND INITIAL REVIEW ONLY. DO NOT MERGE. -# See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins -dependency_overrides: - webview_flutter_platform_interface: {path: ../../../packages/webview_flutter/webview_flutter_platform_interface} From 6a09a858ce562e67986664ada0b4b7b3376dfe16 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:30:34 -0400 Subject: [PATCH 15/15] flutter version bump --- packages/webview_flutter/webview_flutter/CHANGELOG.md | 2 +- packages/webview_flutter/webview_flutter/pubspec.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/webview_flutter/webview_flutter/CHANGELOG.md b/packages/webview_flutter/webview_flutter/CHANGELOG.md index efe812996be..b10794ffdcf 100644 --- a/packages/webview_flutter/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter/CHANGELOG.md @@ -1,7 +1,7 @@ ## 4.11.0 * Adds support to set the over-scroll mode for the WebView. See `WebViewController.setOverScrollMode`. -* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4. +* Updates minimum supported SDK version to Flutter 3.27/Dart 3.6. ## 4.10.0 diff --git a/packages/webview_flutter/webview_flutter/pubspec.yaml b/packages/webview_flutter/webview_flutter/pubspec.yaml index 018503b632c..c609edc11ff 100644 --- a/packages/webview_flutter/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 4.11.0 environment: - sdk: ^3.5.0 - flutter: ">=3.24.0" + sdk: ^3.6.0 + flutter: ">=3.27.0" flutter: plugin: