build method
      
  
Widget
build(
    
- BuildContext context,
- Widget child,
- AnimationController controller,
- EffectEntry entry,
override
    Builds the widgets that implement the effect on the target child,
based on the provided AnimationController and EffectEntry.
Implementation
@override
Widget build(
  BuildContext context,
  Widget child,
  AnimationController controller,
  EffectEntry entry,
) {
  Animation<double> animation = buildAnimation(controller, entry);
  return getOptimizedBuilder<double>(
    animation: animation,
    builder: (_, __) {
      return Transform.rotate(
        angle: animation.value * 2 * math.pi,
        alignment: alignment ?? Alignment.center,
        transformHitTests: transformHitTests,
        child: child,
      );
    },
  );
}