animateScale method

Widget animateScale({
  1. Key? key,
  2. double scale = 1.0,
  3. Duration duration = const Duration(milliseconds: 300),
  4. Curve curve = MotionCurves.swiftOut,
})

Wraps a widget in an easy implicit animated scale effect

Implementation

Widget animateScale({
  Key? key,
  double scale = 1.0,
  Duration duration = const Duration(milliseconds: 300),
  Curve curve = MotionCurves.swiftOut,
}) {
  return AnimatedScale(
    key: key,
    scale: scale,
    duration: duration,
    curve: curve,
    child: this,
  );
}