PluginEventChannel<T> constructor
const
PluginEventChannel<T> (
- String name, [
- MethodCodec codec = const StandardMethodCodec(),
- BinaryMessenger? binaryMessenger
Creates a new plugin event channel.
The name
and codec
arguments must not be null.
Implementation
const PluginEventChannel(
this.name, [
this.codec = const StandardMethodCodec(),
this.binaryMessenger,
]) : assert(name != null),
assert(codec != null);