setOpacity method

void setOpacity(
  1. double value
)

Set the animation to a specific opacity value (0.0 to 1.0)

Implementation

void setOpacity(double value) {
  if (mounted && !_isDisposed && _isInitialized) {
    _controller.value = value.clamp(0.0, 1.0);
  }
}