AnimatedAlign constructor

const AnimatedAlign({Key key, @required AlignmentGeometry alignment, Widget child, Curve curve: Curves.linear, @required Duration duration })

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 AnimatedAlign({
  Key key,
  @required this.alignment,
  this.child,
  Curve curve = Curves.linear,
  @required Duration duration,
}) : assert(alignment != null),
     super(key: key, curve: curve, duration: duration);