ChannelCallback typedef Null safety
Signature for ChannelBuffers.setListener's callback
argument.
The first argument is the data sent by the plugin.
The second argument is a closure that, when called, will send messages back to the plugin.
See also:
- PlatformMessageResponseCallback, the type used for replies.
Implementation
typedef ChannelCallback = void Function(ByteData? data, PlatformMessageResponseCallback callback);