private bool SnackbarAlreadyPresent(Snackbar newSnackbar) { return(SnackBarList.Any(snackbar => newSnackbar.Message.Equals(snackbar.Message) && newSnackbar.Severity.Equals(snackbar.Severity) )); }
private bool ToastAlreadyPresent(Snackbar newToast) { return(SnackBarList.Any(toast => newToast.Message.Equals(toast.Message) && newToast.Type.Equals(toast.Type) )); }