Remove unnecessary null checks in flutter_web_plugins (#118862)

This commit is contained in:
Michael Goderbauer
2023-01-23 11:26:05 -08:00
committed by GitHub
parent 224e6aa18c
commit 6cd4945540

View File

@@ -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;