How to conditionally turn off BackendQuery Filter ?

If I specify a filter condition in a backend query, how / where can I set a condition to
"switch filter off" if necessary, so that the filter does not take effect?

E.g.:

There is a filter defined "name equals to textwidgets input"
There is a FormState boolean variable "isFiltered"

isFiltered = true -> Filter takes effect
isFiltered = false -> Filter does not work, everything is returned

2
1 reply