editComponent method
Queues rerunnable structural edits against an existing component.
Implementation
void editComponent(
String name,
void Function(BrownfieldWidgetEditor component) build,
) {
final editor = BrownfieldWidgetEditor._(
scopeKind: _WidgetClassScopeKind.component,
widgetClassName: name,
);
build(editor);
raw((project) => _applyBrownfieldWidgetClassEdit(project, editor));
}