buildAnimatedChild method
Returns the transformed widget for the current animation tick. The
child argument is the unchanged widget.child, ready to be wrapped
in Transform, Opacity, etc.
Implementation
@override
Widget buildAnimatedChild(BuildContext context, Widget child) {
return Transform(
alignment: FractionalOffset.center,
transform: Matrix4.identity()
..setEntry(0, 0, _rotation.value + 1)
..rotateX(_rotation.value),
child: Opacity(opacity: _opacity.value, child: child),
);
}