OptionalMethodChannel constructor

const OptionalMethodChannel(
  1. String name, [
  2. MethodCodec codec = const StandardMethodCodec(),
  3. BinaryMessenger? binaryMessenger
])

Creates a MethodChannel that ignores missing platform plugins.

Implementation

const OptionalMethodChannel(super.name, [super.codec, super.binaryMessenger]);