binaryMessenger property Null safety
The messenger used by this channel to send platform messages.
The messenger may not be null.
Implementation
BinaryMessenger get binaryMessenger {
final BinaryMessenger result =
_binaryMessenger ?? ServicesBinding.instance.defaultBinaryMessenger;
return !kReleaseMode && debugProfilePlatformChannels
? _debugBinaryMessengers[this] ??= _ProfiledBinaryMessenger(
// ignore: no_runtimetype_tostring
result, runtimeType.toString(), codec.runtimeType.toString())
: result;
}