animatedPosition method

AnimatedPositioned animatedPosition({
  1. Curve curve = Curves.linear,
  2. Duration duration = const Duration(milliseconds: 300),
  3. double? left,
  4. double? top,
  5. double? right,
  6. double? bottom,
  7. double? width,
  8. double? height,
  9. VoidCallback? onEnd,
})

Implementation

AnimatedPositioned animatedPosition(
    {Curve curve = Curves.linear,
    Duration duration = const Duration(milliseconds: 300),
    double? left,
    double? top,
    double? right,
    double? bottom,
    double? width,
    double? height,
    VoidCallback? onEnd}) {
  return AnimatedPositioned(
      key: key,
      left: left,
      top: top,
      right: right,
      bottom: bottom,
      curve: curve,
      width: width,
      height: height,
      duration: duration,
      onEnd: onEnd,
      child: this);
}