FlexibleBottomSheet<T> constructor

FlexibleBottomSheet<T>({
  1. Key? key,
  2. PopupRoute<T>? route,
  3. double minHeight = 0,
  4. double initHeight = 0.5,
  5. double maxHeight = 1,
  6. FlexibleDraggableScrollableWidgetBuilder? builder,
  7. FlexibleDraggableScrollableHeaderWidgetBuilder? headerBuilder,
  8. FlexibleDraggableScrollableWidgetBodyBuilder? bodyBuilder,
  9. bool isCollapsible = false,
  10. bool isExpand = true,
  11. AnimationController? animationController,
  12. List<double>? anchors,
  13. double? minHeaderHeight,
  14. double? maxHeaderHeight,
  15. Decoration? decoration,
  16. VoidCallback? onDismiss,
  17. Color? keyboardBarrierColor,
  18. Color? bottomSheetColor,
  19. BorderRadiusGeometry? bottomSheetBorderRadius,
  20. DraggableScrollableController? draggableScrollableController,
  21. bool useRootScaffold = true,
})

Implementation

FlexibleBottomSheet({
  super.key,
  this.route,
  this.minHeight = 0,
  this.initHeight = 0.5,
  this.maxHeight = 1,
  this.builder,
  this.headerBuilder,
  this.bodyBuilder,
  this.isCollapsible = false,
  this.isExpand = true,
  this.animationController,
  this.anchors,
  this.minHeaderHeight,
  this.maxHeaderHeight,
  this.decoration,
  this.onDismiss,
  this.keyboardBarrierColor,
  this.bottomSheetColor,
  this.bottomSheetBorderRadius,
  this.draggableScrollableController,
  this.useRootScaffold = true,
})  : assert(minHeight >= 0 && minHeight <= 1),
      assert(maxHeight > 0 && maxHeight <= 1),
      assert(maxHeight > minHeight),
      assert(!isCollapsible || minHeight == 0),
      assert(anchors == null || !anchors.any((anchor) => anchor > maxHeight)),
      assert(anchors == null || !anchors.any((anchor) => anchor < minHeight)),
      assert(isExpand || maxHeight == initHeight && anchors == null);