private bool ToastAlreadyPresent(Toast newToast) { return(Toasts.Any(toast => newToast.Message.Equals(toast.Message) && newToast.Title.Equals(toast.Title) && newToast.Options.Type.Equals(toast.State.Options.Type) )); }
private bool ToastAlreadyPresent(string message, string title, ToastType type) { return(Toasts.Any(toast => message.Equals(toast.Message) && title.Equals(toast.Title) && type.Equals(toast.State.Options.Type) )); }