onMessage method

dynamic onMessage(
  1. String channelName,
  2. dynamic fn(
    1. dynamic args
    )
)

Implementation

onMessage(String channelName, dynamic Function(dynamic args) fn) {
  setupBridge(channelName, fn);
}