MessageHandler typedef

Future<ByteData> MessageHandler (ByteData message)

A function which takes a platform message and asynchronously returns an encoded response.

Implementation

typedef MessageHandler = Future<ByteData> Function(ByteData message);