cancelScheduledNotification method

  1. @override
Future<bool> cancelScheduledNotification(
  1. int id
)
override

Cancel a previously scheduled notification by its id.

Implementation

@override
Future<bool> cancelScheduledNotification(int id) async {
  _scheduledTimers[id]?.cancel();
  _scheduledTimers.remove(id);
  return true;
}