editComponentParams method
Ensures parameters exist on an existing component without recreating it.
Implementation
void editComponentParams(
String name,
void Function(BrownfieldParamEditor params) build,
) {
recordExistingReference(
name: name,
kind: 'component',
referenceApi: 'editComponentParams',
removeApi: 'removeComponent',
);
final editor = BrownfieldParamEditor._(
kind: _WidgetClassScopeKind.component,
widgetClassName: name,
);
build(editor);
raw((project) => _applyBrownfieldParamEdit(project, editor));
}