cancelLocalNotification static method

Future<void> cancelLocalNotification({
  1. required String id,
})

Cancels the local notification with the specified id. @param id The id of the notification that will be cancelled

Implementation

static Future<void> cancelLocalNotification({required String id}) async {
  await _channel.invokeMethod('cancelNotification', {'id': id.hashCode});
}