dismiss method

void dismiss(
  1. ToastificationItem notification, {
  2. bool showRemoveAnimation = true,
})

dismisses the given notification

if the notification is not in the list, nothing will happen

Implementation

void dismiss(
  ToastificationItem notification, {
  bool showRemoveAnimation = true,
}) {
  final manager = managers[notification.alignment];

  if (manager != null) {
    manager.dismiss(notification, showRemoveAnimation: showRemoveAnimation);
  }
}