PluginEventChannel<T> constructor

const PluginEventChannel<T>(
  1. String name, [
  2. MethodCodec codec = const StandardMethodCodec(),
  3. 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);