sendWithListData method

void sendWithListData(
  1. String commandName,
  2. List? data, {
  3. SendMessageCallback? callback,
})

Sends a message with a data as List to the JavaScript receiver with a commandName.

Implementation

void sendWithListData(String commandName, List<dynamic>? data,
    {SendMessageCallback? callback}) {
  String callbackId = _addSendMessageCallback(commandName, callback);
  _requests
      .add(_Request(name: commandName, callbackId: callbackId, data: data));
  _waitForReadyAndSendRequests();
}