Removes all the children for which the test function returns true.
test
void removeWhere(bool Function(Component component) test) { children.where(test).toList(growable: false).forEach(_removeChild); }