find

static Optional<Widgetfind(Predicate<Widget> filter, Array<int> startInterfacePath)

Walks the tree of widget, starting with the widget provided by the given path. If no path is given, it walks through all widget. The walking is done depth-first. The first interface to match the filter is returned.