cancelNotification method
Cancel a specific notification
Implementation
@override
Future<bool> cancelNotification(String id) async {
try {
final result = await methodChannel.invokeMethod<bool>('cancelNotification', {'id': id});
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error canceling notification: ${e.message}');
return false;
}
}