animate method

AnimatedPositioned animate({
  1. Curve curve = Curves.linear,
  2. Duration duration = const Duration(milliseconds: 300),
  3. VoidCallback? onEnd,
})

Implementation

AnimatedPositioned animate(
    {Curve curve = Curves.linear,
    Duration duration = const Duration(milliseconds: 300),
    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: child);
}