getAvailableDefaultMenus method
Queries the native side for the default menus available on the current
platform, returning null if the query fails.
Implementation
Future<Map<String, String>?> getAvailableDefaultMenus() async {
try {
final result = await channel.invokeMethod<Map<String, String>>(
'Menu.getAvailableDefaultMenus',
);
return result;
} catch (e) {
return null;
}
}