AnimationWidget constructor

const AnimationWidget({
  1. Widget? child,
  2. AnimationType type = AnimationType.normal,
  3. Duration duration = const Duration(milliseconds: 600),
  4. Duration delay = Duration.zero,
  5. Curve curve = Curves.fastOutSlowIn,
  6. double angle = 0,
  7. double scale = 1,
  8. double opacity = 1,
  9. bool reversed = false,
  10. Widget builder(
    1. BuildContext context,
    2. double animationValue,
    3. Widget? child
    )?,
  11. Offset offset = const Offset(0, 0),
  12. Alignment scaleAlignment = Alignment.center,
  13. Alignment rotationAlignment = Alignment.center,
  14. bool developerMode = false,
  15. Key? key,
})

Implementation

const AnimationWidget({
  this.child,
  this.type = AnimationType.normal,
  this.duration = const Duration(milliseconds: 600),
  this.delay = Duration.zero,
  this.curve = Curves.fastOutSlowIn,
  this.angle = 0,
  this.scale = 1,
  this.opacity = 1,
  this.reversed = false,
  this.builder,
  this.offset = const Offset(0, 0),
  this.scaleAlignment = Alignment.center,
  this.rotationAlignment = Alignment.center,
  this.developerMode = false,
  Key? key,
})  : assert(child != null || builder != null),
      super(key: key);