DraggableBottomSheet constructor

const DraggableBottomSheet({
  1. Key? key,
  2. double initialChildSize = .75,
  3. double minChildSize = .25,
  4. double maxChildSize = 1,
  5. double minFocusableExtent = .5,
  6. double? contentHeight,
  7. bool updateInsets = true,
  8. required Widget child,
})

Implementation

const DraggableBottomSheet({
  super.key,
  this.initialChildSize = .75,
  this.minChildSize = .25,
  this.maxChildSize = 1,
  this.minFocusableExtent = .5,
  this.contentHeight,
  this.updateInsets = true,
  required this.child,
})  : assert(minChildSize >= 0.0, 'minChildSize cannot be negative'),
      assert(maxChildSize <= 1.0, 'maxChildSize cannot be > 1'),
      assert(minChildSize <= initialChildSize, 'minChildSize cannot be > initialChildSize'),
      assert(initialChildSize <= maxChildSize, 'initialChildSize cannot be > maxChildSize'),
      assert(contentHeight == null || contentHeight >= 0, 'contentHeight cannot be negative');