dismissById method
dismisses a notification by its id
if there is no notification with the given id nothing will happen
Implementation
void dismissById(
String id, {
bool showRemoveAnimation = true,
}) {
final notification = findToastificationItem(id);
if (notification != null) {
dismiss(notification, showRemoveAnimation: true);
}
}