onSetState method

void onSetState(
  1. double opacity
)

Implementation

void onSetState(double opacity) {
  if (opacity >= 0 && opacity <= 1) {
    this.opacity = opacity;
    if (!mounted) {
      return;
    }
    setState(() {});
  }
}