ExpandableBottomSheet constructor
const
ExpandableBottomSheet({
- Key? key,
- required Widget expandableContent,
- required Widget background,
- Widget? persistentHeader,
- double persistentContentHeight = 0.0,
- Curve animationCurveExpand = Curves.ease,
- Curve animationCurveContract = Curves.ease,
- Duration animationDurationExtend = const Duration(milliseconds: 250),
- Duration animationDurationContract = const Duration(milliseconds: 250),
- dynamic onIsExtendedCallback()?,
- dynamic onIsContractedCallback()?,
- 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);