setHandler function

void setHandler(
  1. Future<Object?> handler(
    1. String name,
    2. Object? data
    )
)

Set message handler.

Receive message from android window.

Implementation

void setHandler(Future<Object?> Function(String name, Object? data) handler) {
  MainHandler.setup(_Handler(handler));
}