sendToPalette method
Send a message to a palette (Host → Palette).
await messageClient.sendToPalette('slash-menu', 'filter-update', {'filter': 'hea'});
Implementation
Future<void> sendToPalette(
String paletteId,
String type, [
Map<String, dynamic>? data,
]) async {
await send('send', windowId: paletteId, params: {'type': type, 'data': data ?? {}});
}