setTrayMenu method

Future<void> setTrayMenu(
  1. List<Map<String, dynamic>> items
)

Set tray menu items

Implementation

Future<void> setTrayMenu(List<Map<String, dynamic>> items) async {
  try {
    await methodChannel.invokeMethod<void>('setTrayMenu', {'items': items});
  } on PlatformException catch (e) {
    throw MCPPlatformException('Failed to set tray menu', e.code, e.details);
  }
}