AnimatedSizedBox.fromSize constructor

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

Implementation

AnimatedSizedBox.fromSize({
  Size? size,
  Key? key,
  Curve curve = Curves.linear,
  VoidCallback? onEnd,
  required Duration duration,
  Widget? child,
}) : this(
        width: size?.width,
        height: size?.height,
        key: key,
        curve: curve,
        onEnd: onEnd,
        duration: duration,
        child: child,
      );