ExpandableBottomSheet constructor

const ExpandableBottomSheet({
  1. Key? key,
  2. required Widget expandableContent,
  3. required Widget background,
  4. Widget? persistentHeader,
  5. Widget? persistentFooter,
  6. double persistentContentHeight = 0.0,
  7. Curve animationCurveExpand = Curves.ease,
  8. Curve animationCurveContract = Curves.ease,
  9. Duration animationDurationExtend = const Duration(milliseconds: 250),
  10. Duration animationDurationContract = const Duration(milliseconds: 250),
  11. dynamic onIsExtendedCallback()?,
  12. dynamic onIsContractedCallback()?,
  13. bool enableToggle = false,
})

Creates the ExpandableBottomSheet.

persistentContentHeight has to be greater 0.

Implementation

const ExpandableBottomSheet({
  Key? key,
  required this.expandableContent,
  required this.background,
  this.persistentHeader,
  this.persistentFooter,
  this.persistentContentHeight = 0.0,
  this.animationCurveExpand = Curves.ease,
  this.animationCurveContract = Curves.ease,
  this.animationDurationExtend = const Duration(milliseconds: 250),
  this.animationDurationContract = const Duration(milliseconds: 250),
  this.onIsExtendedCallback,
  this.onIsContractedCallback,
  this.enableToggle = false,
})  : assert(persistentContentHeight >= 0),
      super(key: key);