remove method

void remove(
  1. Component c
)

Removes a component from the component tree, calling onRemove for it and its children.

Implementation

void remove(Component c) {
  children.remove(c);
}