AnimatedSize constructor

const AnimatedSize({
  1. Key? key,
  2. Widget? child,
  3. AlignmentGeometry alignment = Alignment.center,
  4. Curve curve = Curves.linear,
  5. required Duration duration,
  6. Duration? reverseDuration,
  7. Clip clipBehavior = Clip.hardEdge,
})

Creates a widget that animates its size to match that of its child.

Implementation

const AnimatedSize(
    {super.key,
    this.child,
    this.alignment = Alignment.center,
    this.curve = Curves.linear,
    required this.duration,
    this.reverseDuration,
    this.clipBehavior = Clip.hardEdge});