onColorChanged property
A callback that is called when the color is changed.
This field holds a function that will be called when the color is changed. The function takes a single parameter of type int, which represents the new color.
Implementation
final ValueChanged<int>? onColorChanged;