23 explicit Impl(std::function<
bool()> show) : show_(std::move(show)) {}
27 return show_() ? ComponentBase::OnRender() : std::make_unique<Node>();
29 bool Focusable()
const override {
30 return show_() && ComponentBase::Focusable();
32 bool OnEvent(
Event event)
override {
33 return show_() && ComponentBase::OnEvent(event);
36 std::function<bool()> show_;
40 maybe->Add(std::move(child));