Match only elements with no children matching the query produced by builder.
builder
NodeQuery hasNoChildWhere(Function(NodeQuery) builder) { return where((n) => buildQuery(builder).findOne(n) == null); }