BottomSheet constructor

const BottomSheet({
  1. Key? key,
  2. Widget? header,
  3. bool showHandle = true,
  4. bool? showDivider,
  5. Widget? description,
  6. double initialChildSize = 0.5,
  7. double minChildSize = 0.25,
  8. double maxChildSize = 0.85,
  9. List<Widget>? children,
})

Creates a bottom sheet.

Implementation

const BottomSheet({
  Key? key,
  this.header,
  this.showHandle = true,
  this.showDivider,
  this.description,
  this.initialChildSize = 0.5,
  this.minChildSize = 0.25,
  this.maxChildSize = 0.85,
  this.children,
})  : assert(
        header == null || description == null,
        'You can NOT provide both header and description',
      ),
      assert(minChildSize >= 0.0),
      assert(maxChildSize <= 1.0),
      assert(minChildSize <= initialChildSize),
      assert(initialChildSize <= maxChildSize),
      super(key: key);