22 explicit Impl(std::function<
bool()> show) : show_(std::move(show)) {}
26 return show_() ? ComponentBase::OnRender() : std::make_unique<Node>();
28 bool Focusable()
const override {
29 return show_() && ComponentBase::Focusable();
31 bool OnEvent(
Event event)
override {
32 return show_() && ComponentBase::OnEvent(event);
34 std::function<bool()> show_;
38 maybe->Add(std::move(child));