Open whitebyte opened 1 week ago
auto widget = parent.childById("nonexistent"); // returns null auto widget2 =parent.child(1000); // throws exception
Expected behavior: .child(x) should return null if there is no child with such index (or no children at all). I can open a PR if maintainers agree
.child(x)
null
According to this the base class already returns null. I think that "return null" is intended behavior, so I don't mind such PR at all :) If you're at it -- please make sure that it's consistent across all subclasses
Expected behavior:
.child(x)
should returnnull
if there is no child with such index (or no children at all). I can open a PR if maintainers agree