AnimatedSizedBox constructor

AnimatedSizedBox({
  1. double? width,
  2. double? height,
  3. Key? key,
  4. Curve curve = Curves.linear,
  5. VoidCallback? onEnd,
  6. required Duration duration,
  7. Widget? child,
})

Implementation

AnimatedSizedBox({
  double? width,
  double? height,
  super.key,
  super.curve,
  super.onEnd,
  required super.duration,
  super.child,
}) : super(
        value: _SizedBoxValue(width, height),
        lerp: _SizedBoxValue.lerp,
        builder: (_, value, __) {
          return SizedBox(
            width: value.width,
            height: value.height,
            child: child,
          );
        },
      );