From 6cd494554033fe2b384b5f0ff83714580c35a662 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Mon, 23 Jan 2023 11:26:05 -0800 Subject: [PATCH] Remove unnecessary null checks in flutter_web_plugins (#118862) --- .../flutter_web_plugins/lib/src/plugin_event_channel.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/flutter_web_plugins/lib/src/plugin_event_channel.dart b/packages/flutter_web_plugins/lib/src/plugin_event_channel.dart index e0ccdd7b8a..00bd96a672 100644 --- a/packages/flutter_web_plugins/lib/src/plugin_event_channel.dart +++ b/packages/flutter_web_plugins/lib/src/plugin_event_channel.dart @@ -43,8 +43,7 @@ class PluginEventChannel { this.name, [ this.codec = const StandardMethodCodec(), this.binaryMessenger, - ]) : assert(name != null), - assert(codec != null); + ]); /// The logical channel on which communication happens. /// @@ -108,7 +107,7 @@ class _EventChannelHandler { this.codec, this.controller, this.messenger, - ) : assert(messenger != null); + ); final String name; final MethodCodec codec;