-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
type-questionA question about expected behavior or functionalityA question about expected behavior or functionality
Description
I have written dart side post message to send dart Map to web worker postMessage.
Future<void> postMessageDynamic(int id, message) async{
final worker = _workers[id];
Map<String , dynamic> messageMap = message as Map<String,dynamic>;
worker.postMessage(messageMap.toJSBox);
}
But toJsBox creates an empty object without the actual Map data I want to send.
Let me know how can I send dart Map to postMessage without using json encoding.
Metadata
Metadata
Assignees
Labels
type-questionA question about expected behavior or functionalityA question about expected behavior or functionality