dismiss method
Implementation
void dismiss(Object id) {
final hadMatch = _toasts.any((toast) => toast.id == id);
_toasts.removeWhere((toast) => toast.id == id);
if (hadMatch) notifyListeners();
}
void dismiss(Object id) {
final hadMatch = _toasts.any((toast) => toast.id == id);
_toasts.removeWhere((toast) => toast.id == id);
if (hadMatch) notifyListeners();
}