From f4ad8d571f0ff5b2e3044c423884ea682d591a18 Mon Sep 17 00:00:00 2001 From: MSOB7Y <85245079+MSOB7YY@users.noreply.github.com> Date: Wed, 12 Mar 2025 04:55:56 +0200 Subject: [PATCH] fix: `ChannelController.debugAssertNotDisposed()` throwing when calling `disposeChannel()` in debug mode --- flutter_inappwebview_platform_interface/lib/src/util.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_inappwebview_platform_interface/lib/src/util.dart b/flutter_inappwebview_platform_interface/lib/src/util.dart index a6b780bc0..3e1c8e96f 100644 --- a/flutter_inappwebview_platform_interface/lib/src/util.dart +++ b/flutter_inappwebview_platform_interface/lib/src/util.dart @@ -638,7 +638,7 @@ extension InternalChannelController on ChannelController { disposeChannel({bool removeMethodCallHandler = true}) { if (removeMethodCallHandler) { - channel?.setMethodCallHandler(null); + this._channel?.setMethodCallHandler(null); } channel = null; handler = null;