DraggableBottomSheet constructor

const DraggableBottomSheet({
  1. Key? key,
  2. required Widget previewWidget,
  3. required Widget backgroundWidget,
  4. required Widget expandedWidget,
  5. required dynamic onDragging(
    1. double
    ),
  6. double minExtent = 50.0,
  7. bool collapsed = true,
  8. bool useSafeArea = true,
  9. Curve curve = Curves.linear,
  10. double expansionExtent = 10.0,
  11. bool barrierDismissible = true,
  12. double maxExtent = double.infinity,
  13. Color barrierColor = Colors.black54,
  14. Alignment alignment = Alignment.bottomCenter,
  15. Duration duration = const Duration(milliseconds: 0),
})

Implementation

const DraggableBottomSheet({
  Key? key,
  required this.previewWidget,
  required this.backgroundWidget,
  required this.expandedWidget,
  required this.onDragging,
  this.minExtent = 50.0,
  this.collapsed = true,
  this.useSafeArea = true,
  this.curve = Curves.linear,
  this.expansionExtent = 10.0,
  this.barrierDismissible = true,
  this.maxExtent = double.infinity,
  this.barrierColor = Colors.black54,
  this.alignment = Alignment.bottomCenter,
  this.duration = const Duration(milliseconds: 0),
})  : assert(minExtent > 0.0),
      assert(expansionExtent > 0.0),
      assert(minExtent + expansionExtent < maxExtent),
      super(key: key);