AnimatedAlign constructor

const AnimatedAlign({
  1. Key? key,
  2. required AlignmentGeometry alignment,
  3. Widget? child,
  4. double? heightFactor,
  5. double? widthFactor,
  6. Curve curve = Curves.linear,
  7. required Duration duration,
  8. void onEnd()?,
})

Creates a widget that positions its child by an alignment that animates implicitly.

Implementation

const AnimatedAlign(
    {super.key,
    required this.alignment,
    this.child,
    this.heightFactor,
    this.widthFactor,
    this.curve = Curves.linear,
    required this.duration,
    this.onEnd})
    : assert(widthFactor == null || widthFactor >= 0.0),
      assert(heightFactor == null || heightFactor >= 0.0);