MessageHandler typedef

Future<ByteData> MessageHandler (
  1. ByteData message
)

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

Implementation

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