AnimatedAlignModifier constructor

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

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

The alignment, curve, and duration arguments must not be null.

Implementation

const AnimatedAlignModifier({
  super.key,
  super.modifierKey,
  super.curve,
  super.child,
  required super.duration,
  super.onEnd,
  required this.alignment,
  this.heightFactor,
  this.widthFactor,
});