scale method

Widget scale({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 500),
  3. Curve curve = Curves.easeInOut,
  4. double begin = 0.8,
  5. double end = 1.0,
})

Scales the widget.

Implementation

Widget scale({
  Key? key,
  Duration duration = const Duration(milliseconds: 500),
  Curve curve = Curves.easeInOut,
  double begin = 0.8,
  double end = 1.0,
}) {
  return _AnimatedWrapper(
    key: key,
    type: _AnimationType.scale,
    duration: duration,
    curve: curve,
    scaleBegin: begin,
    scaleEnd: end,
    child: this,
  );
}