cancel method

Future<void> cancel(
  1. int id
)

Cancels an active or pending notification by id.

Example:

await notifications.cancel(42);

Implementation

Future<void> cancel(int id) async {
  try {
    await _plugin.cancel(id);
    logger.debug('BloomNotifications: Cancelled notification [$id]');
  } catch (_) {}
}