generateBuilderOnSetField property
Whether to generate an onSet
field in the builder.
Defaults to false
.
If generated the onSet
field will have type void Function()
, and will
be called after any setter is called. Assign your own function to
onSet
to respond to changes to the builder.
Implementation
final bool generateBuilderOnSetField;