subscribeMessage method

Future<void> subscribeMessage(
  1. String jsCall,
  2. List params,
  3. String channel,
  4. Function callback,
)

subscribe message.

Implementation

Future<void> subscribeMessage(
  String jsCall,
  List params,
  String channel,
  Function callback,
) async {
  service.webView!.subscribeMessage(
    'settings.subscribeMessage($jsCall, ${jsonEncode(params)}, "$channel")',
    channel,
    callback,
  );
}