binaryMessenger property Null safety

BinaryMessenger binaryMessenger

The messenger used by this channel to send platform messages.

The messenger may not be null.

Implementation

BinaryMessenger get binaryMessenger => _binaryMessenger ?? ServicesBinding.instance.defaultBinaryMessenger;