Expandable constructor

const Expandable({
  1. Key? key,
  2. required AnimationController controller,
  3. required Widget child,
  4. required double height,
  5. double? width,
  6. bool animateWidth = false,
  7. bool animateHeight = true,
  8. Curve? curve,
  9. Duration? duration,
})

Implementation

const Expandable({
  Key? key,
  required this.controller,
  required this.child,
  required this.height,
  this.width,
  this.animateWidth = false,
  this.animateHeight = true,
  this.curve,
  this.duration,
})  : assert((animateWidth && width != null) ||
          (!animateWidth && width == null)),
      assert(animateHeight || animateWidth),
      super(key: key);