How to implement field widget

You can define your custom field widget instead of default widgets provided by dawiq.

Field widget must have the structure of FieldWidgetProtocol. Once you defined your field widget, define a function which replaces type2Widget() and pass it to dataclass2Widget() when constructing the data widget.