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(
transform: Matrix4.identity()
..scaleByDouble(_scale.value, _scale.value, 1, 1)
..rotateZ(_rotation.value),
alignment: Alignment.center,
child: child,
);
}