enableOpacity property Null safety

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.

Defaults to false.

Implementation

final bool enableOpacity;