PluginEventChannel<T> constructor

const PluginEventChannel<T>(
  1. String name, [
  2. MethodCodec codec = const StandardMethodCodec(),
  3. BinaryMessenger? binaryMessenger
])

Creates a new plugin event channel.

Implementation

const PluginEventChannel(
  this.name, [
  this.codec = const StandardMethodCodec(),
  this.binaryMessenger,
]);