Removes all the children for which the test function returns true.
test
void removeWhere(bool Function(Component component) test) { removeAll([...children.where(test)]); }