projectComponent method
Returns a callable handle for a component that already exists in the current target project.
Implementation
ExistingProjectComponentHandle projectComponent(
String name, {
Map<String, DslType>? params,
}) {
recordExistingReference(
name: name,
kind: 'component',
referenceApi: 'projectComponent',
removeApi: 'removeComponent',
);
_rejectReservedComponentParamNames(name, params);
return ExistingProjectComponentHandle(name, params: params);
}