Now, the child selector does not throw when the quantity doesn't match. Instead in checks that only a single Wrap is a child of Container. If Container would have 2+ or zero Wraps it would not find it instead. (filter it out as possible matching candidate)
This query would fail when the entire widget tree contains two
Wrap
.Now, the child selector does not throw when the quantity doesn't match. Instead in checks that only a single
Wrap
is a child ofContainer
. IfContainer
would have2+
or zeroWrap
s it would not find it instead. (filter it out as possible matching candidate)