dismiss method

void dismiss(
  1. Notification notification
)

Dismiss a specific notification.

Implementation

void dismiss(Notification notification) {
  final _NotificationEntry? entry =
      _entries.where((e) => e.notification == notification).firstOrNull;
  if (entry != null) _dismiss(entry);
}