BottomSheet constructor

const BottomSheet({Key key, AnimationController animationController, bool enableDrag: true, double elevation: 0.0, @required VoidCallback onClosing, @required WidgetBuilder builder })

Creates a bottom sheet.

Typically, bottom sheets are created implicitly by ScaffoldState.showBottomSheet, for persistent bottom sheets, or by showModalBottomSheet, for modal bottom sheets.

Implementation

const BottomSheet({
  Key key,
  this.animationController,
  this.enableDrag = true,
  this.elevation = 0.0,
  @required this.onClosing,
  @required this.builder
}) : assert(enableDrag != null),
     assert(onClosing != null),
     assert(builder != null),
     assert(elevation != null && elevation >= 0.0),
     super(key: key);