setOnNewReplyReceivedCallback static method
Sets a block of code that gets executed when a new message is received.
callback
- A callback that gets executed when a new message is received.
Implementation
static Future<void> setOnNewReplyReceivedCallback(
OnNewReplyReceivedCallback callback,
) async {
_onNewReplyReceivedCallback = callback;
return _host.bindOnNewReplyCallback();
}