removeComponent method

void removeComponent(
  1. String name
)

Removes a reusable component from the target project by name.

Implementation

void removeComponent(String name) {
  _queueRemoval(
    name: name,
    kind: 'component',
    declarationApi: 'component',
    declaredNames: _componentNames,
  );
  _rawMutations.add(
    (project) => project_helpers.removeComponent(project, name: name),
  );
}