AnimatedOpacity constructor
Creates a widget that animates its opacity implicitly.
The opacity
argument must be between zero and one, inclusive.
Implementation
const AnimatedOpacity({
super.key,
this.child,
required this.opacity,
super.curve,
required super.duration,
super.onEnd,
this.alwaysIncludeSemantics = false,
}) : assert(opacity >= 0.0 && opacity <= 1.0);