createPropertyEditor method
Function that creates the widget shown in the property editor sidebar.
Implement this when overriding Property to declare what a property editor is, such as a TextField or a checkbox.
See p.ListPropertyWidget
or p.ColorProperty
for examples of widgets
used for property editing.
Implementation
@override
Widget createPropertyEditor({required PropertyChanged onChanged, Key? key}) {
return p.ListPropertyWidget(
property: this,
onChanged: onChanged,
key: key,
);
}