sendWithListData method
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();
}