toWidget method
Builds the current field into a Widget to be used for input in the side panel.
Implementation
@override
Widget toWidget(BuildContext context, String group, Color? value) {
return ColorPicker(
colorSpace: initialColorSpace,
value: value ?? defaultColor,
onChanged: (value) {
updateField(
context,
group,
value,
);
},
);
}