AnimatedOverflowBox constructor

AnimatedOverflowBox({
  1. AlignmentGeometry alignment = Alignment.center,
  2. double? minWidth,
  3. double? maxWidth,
  4. double? minHeight,
  5. double? maxHeight,
  6. Key? key,
  7. Curve curve = Curves.linear,
  8. VoidCallback? onEnd,
  9. required Duration duration,
  10. Widget? child,
})

Implementation

AnimatedOverflowBox({
  AlignmentGeometry alignment = Alignment.center,
  double? minWidth,
  double? maxWidth,
  double? minHeight,
  double? maxHeight,
  super.key,
  super.curve,
  super.onEnd,
  required super.duration,
  super.child,
}) : super(
        value: _OverflowValue(
          alignment: alignment,
          minWidth: minWidth,
          maxWidth: maxWidth,
          minHeight: minHeight,
          maxHeight: maxHeight,
        ),
        lerp: _OverflowValue.lerp,
        builder: (_, value, __) {
          return OverflowBox(
            alignment: value.alignment,
            minWidth: value.minWidth,
            maxWidth: value.maxWidth,
            minHeight: value.minHeight,
            maxHeight: value.maxHeight,
            child: child,
          );
        },
      );