SlidingUpPanelWidget constructor

SlidingUpPanelWidget({
  1. required Widget child,
  2. required double controlHeight,
  3. AnimationController? animationController,
  4. required SlidingUpPanelController panelController,
  5. OnSlidingUpPanelStatusChanged? onStatusChanged,
  6. VoidCallback? onTap,
  7. bool enableOnTap = true,
  8. double elevation = 0.0,
  9. SlidingUpPanelStatus panelStatus = SlidingUpPanelStatus.collapsed,
  10. double anchor = 0.5,
  11. double upperBound = 1.0,
  12. double minimumBound = 0.0,
  13. OnSlidingUpPanelDragDown? dragDown,
  14. OnSlidingUpPanelDragCancel? dragCancel,
  15. OnSlidingUpPanelDragStart? dragStart,
  16. OnSlidingUpPanelDragUpdate? dragUpdate,
  17. OnSlidingUpPanelDragEnd? dragEnd,
})

Implementation

SlidingUpPanelWidget({
  required this.child,
  required this.controlHeight,
  this.animationController,
  required this.panelController,
  this.onStatusChanged,
  this.onTap,
  this.enableOnTap = true,
  this.elevation = 0.0,
  this.panelStatus = SlidingUpPanelStatus.collapsed,
  this.anchor = 0.5,
  this.upperBound = 1.0,
  this.minimumBound = 0.0,
  this.dragDown,
  this.dragCancel,
  this.dragStart,
  this.dragUpdate,
  this.dragEnd,
}) : assert(upperBound >= minimumBound);