AllMessagesHandler typedef Null safety

AllMessagesHandler = Future<ByteData?>? Function(String channel, MessageHandler? handler, ByteData? message)

A function which takes the name of the method channel, it's handler, platform message and asynchronously returns an encoded response.

Implementation

typedef AllMessagesHandler = Future<ByteData?>? Function(
    String channel, MessageHandler? handler, ByteData? message);