createPropertyEditor abstract method

Widget createPropertyEditor({
  1. required PropertyChanged onChanged,
  2. Key? key,
})

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

Widget createPropertyEditor({
  required PropertyChanged onChanged,
  Key? key,
});