fadeTransition method
Animates the opacity of a widget.
For a widget that automatically animates between the sizes of two children, fading between them, see AnimatedCrossFade.
Implementation
Widget fadeTransition({
required Animation<double> opacity,
Key? key,
bool alwaysIncludeSemantics = false,
}) {
return FadeTransition(
key: key,
opacity: opacity,
alwaysIncludeSemantics: alwaysIncludeSemantics,
child: this,
);
}