cancel method

Future<void> cancel(
  1. int? id, {
  2. String? tag,
})

Cancel a specific notification.

Implementation

Future<void> cancel(int? id, {String? tag}) async {
  if (id == null || id < 0) {
    return;
  }
  await _flutterLocalNotificationsPlugin!.cancel(id, tag: tag);
  return;
}