PlatformMessageCallback typedef Null safety

PlatformMessageCallback = void Function(String name, ByteData? data, PlatformMessageResponseCallback? callback)

Signature for PlatformDispatcher.onPlatformMessage.

Implementation

// TODO(ianh): deprecate once framework uses [ChannelBuffers.setListener].
typedef PlatformMessageCallback = void Function(String name, ByteData? data, PlatformMessageResponseCallback? callback);