AnimatedPositionedDirectional constructor

const AnimatedPositionedDirectional({Key key, @required Widget child, double start, double top, double end, double bottom, double width, double height, Curve curve: Curves.linear, @required Duration duration })

Creates a widget that animates its position implicitly.

Only two out of the three horizontal values (start, end, width), and only two out of the three vertical values (top, bottom, height), can be set. In each case, at least one of the three must be null.

The curve and duration arguments must not be null.

Implementation

const AnimatedPositionedDirectional({
  Key key,
  @required this.child,
  this.start,
  this.top,
  this.end,
  this.bottom,
  this.width,
  this.height,
  Curve curve = Curves.linear,
  @required Duration duration,
}) : assert(start == null || end == null || width == null),
     assert(top == null || bottom == null || height == null),
    super(key: key, curve: curve, duration: duration);