showNotification method
Show notification
Implementation
@override
Future<void> showNotification({
required String title,
required String body,
String? icon,
String id = 'mcp_notification',
}) async {
try {
await methodChannel.invokeMethod<void>('showNotification', {
'title': title,
'body': body,
'icon': icon,
'id': id,
});
} on PlatformException catch (e) {
throw MCPPlatformException(
'Failed to show notification', e.code, e.details);
}
}