unsubscribeMessage method

void unsubscribeMessage(
  1. String channel
)

Implementation

void unsubscribeMessage(String channel) {
  print('unsubscribe $channel');
  final unsubCall = 'unsub$channel';
  _web!.webViewController
      .evaluateJavascript(source: 'window.$unsubCall && window.$unsubCall()');
}