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> {
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<T> {
this.codec,
this.controller,
this.messenger,
) : assert(messenger != null);
);
final String name;
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