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