removeWhere method

void removeWhere(
  1. bool test(
    1. Component component
    )
)

Removes all the children for which the test function returns true.

Implementation

void removeWhere(bool Function(Component component) test) {
  removeAll([...children.where(test)]);
}