setOpacity method

void setOpacity(
  1. double value
)

Sets the opacity for drawing elements.

The opacity must be between 0 and 1.

Implementation

void setOpacity(double value) {
  paintCtrl.setOpacity(value);
  _uiAppbarIconsStream.add(null);
  paintEditorCallbacks?.handleOpacity(value);
}