MessageHandler typedef

MessageHandler = Future<ByteData?>? Function(ByteData? message)

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

Implementation

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