Unverified Commit 6cd49455 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Remove unnecessary null checks in flutter_web_plugins (#118862)

parent 224e6aa1
...@@ -43,8 +43,7 @@ class PluginEventChannel<T> { ...@@ -43,8 +43,7 @@ class PluginEventChannel<T> {
this.name, [ this.name, [
this.codec = const StandardMethodCodec(), this.codec = const StandardMethodCodec(),
this.binaryMessenger, this.binaryMessenger,
]) : assert(name != null), ]);
assert(codec != null);
/// The logical channel on which communication happens. /// The logical channel on which communication happens.
/// ///
...@@ -108,7 +107,7 @@ class _EventChannelHandler<T> { ...@@ -108,7 +107,7 @@ class _EventChannelHandler<T> {
this.codec, this.codec,
this.controller, this.controller,
this.messenger, this.messenger,
) : assert(messenger != null); );
final String name; final String name;
final MethodCodec codec; final MethodCodec codec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment