This was a recent addition to the Layer List widget. It didn't appear in v2.19, but is in v2.21. I don't have the Developer Edition of 2.20 downloaded, so I can't tell whether it was in that one. Here's how it looks in the current version:
Is your web app build in Portal? That's still at 2.19, which may be why you don't have the search option.