cancelNotification method

Future<void> cancelNotification(
  1. String id
)

Cancel a notification

Implementation

Future<void> cancelNotification(String id) async {
  try {
    await methodChannel.invokeMethod<void>('cancelNotification', {'id': id});
  } on PlatformException catch (e) {
    throw MCPPlatformException(
        'Failed to cancel notification', e.code, e.details);
  }
}