editPageState method
Ensures page-local state fields exist on an existing page.
Existing matching fields are left in place so the edit is rerun-safe.
Implementation
void editPageState(
String name,
void Function(BrownfieldStateEditor state) build,
) {
final editor = BrownfieldStateEditor._(widgetClassName: name);
build(editor);
raw((project) => _applyBrownfieldStateEdit(project, editor));
}