AnimatedPositionedDirectionalModifier constructor

const AnimatedPositionedDirectionalModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. Curve curve = Curves.linear,
  5. required Duration duration,
  6. VoidCallback? onEnd,
  7. double? start,
  8. double? top,
  9. double? end,
  10. double? bottom,
  11. double? width,
  12. double? height,
})

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 AnimatedPositionedDirectionalModifier({
  super.key,
  super.modifierKey,
  super.child,
  super.curve,
  required super.duration,
  super.onEnd,
  this.start,
  this.top,
  this.end,
  this.bottom,
  this.width,
  this.height,
});