setOpacity method

void setOpacity(
  1. double value
)

Sets the current level of opacity.

Implementation

void setOpacity(double value) {
  opacity = value;
  notifyListeners();
}