AnimatedClipRect constructor

const AnimatedClipRect({
  1. Key? key,
  2. required Widget child,
  3. required bool open,
  4. bool horizontalAnimation = true,
  5. bool verticalAnimation = true,
  6. Alignment alignment = Alignment.center,
  7. Duration duration = const Duration(milliseconds: 500),
  8. Duration? reverseDuration,
  9. Curve curve = Curves.linear,
  10. Curve? reverseCurve,
  11. AnimationBehavior animationBehavior = AnimationBehavior.normal,
})

Implementation

const AnimatedClipRect({
  super.key,
  required this.child,
  required this.open,
  this.horizontalAnimation = true,
  this.verticalAnimation = true,
  this.alignment = Alignment.center,
  this.duration = const Duration(milliseconds: 500),
  this.reverseDuration,
  this.curve = Curves.linear,
  this.reverseCurve,
  this.animationBehavior = AnimationBehavior.normal,
});