remove method

void remove(
  1. Component component
)
inherited

Removes a component from the component tree.

This will call onRemove for the component and its children, but only if there was an onMount call previously, i.e. when removing a component that was properly mounted.

A component can be removed even before it finishes mounting, however such component cannot be added back into the tree until it at least finishes loading.

Implementation

void remove(Component component) => _removeChild(component);