onMessage method Null safety

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

Implementation

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