enableOpacity property

bool enableOpacity
final

Enable the opacity control for the color value.

Set to true to allow users to control the opacity value of the selected color. The displayed Opacity value on the slider goes from 0%, which is totally transparent, to 100%, which if fully opaque.

When enabled, the opacity value is not returned as a separate value, it is returned in the alpha channel of the returned ARGB color value, in the onColor callbacks.

When false, colors that has any other alpha value than 0xFF are changed to 0xFF. To allow custom colors and pasted in color values without setting enableOpacity to true and showing the opacity slider, set enableTransparentCustomColors to true.

Defaults to false.

Implementation

final bool enableOpacity;