SmoothModalSheet constructor

SmoothModalSheet({
  1. required String title,
  2. required Widget body,
  3. SmoothModalSheetType type = SmoothModalSheetType.info,
  4. bool prefixIndicator = false,
  5. bool closeButton = true,
  6. Color? prefixIndicatorColor,
  7. Color? headerBackgroundColor,
  8. Color? headerForegroundColor,
  9. EdgeInsetsGeometry? bodyPadding,
  10. bool expandBody = false,
  11. double? closeButtonSemanticsOrder,
})

Implementation

SmoothModalSheet({
  required String title,
  required this.body,
  SmoothModalSheetType type = SmoothModalSheetType.info,
  bool prefixIndicator = false,
  bool closeButton = true,
  Color? prefixIndicatorColor,
  Color? headerBackgroundColor,
  Color? headerForegroundColor,
  this.bodyPadding,
  this.expandBody = false,
  double? closeButtonSemanticsOrder,
}) : header = SmoothModalSheetHeader(
       title: title,
       prefix: prefixIndicator
           ? SmoothModalSheetHeaderPrefixIndicator(
               color: prefixIndicatorColor,
             )
           : null,
       suffix: closeButton
           ? SmoothModalSheetHeaderCloseButton(
               semanticsOrder: closeButtonSemanticsOrder,
             )
           : null,
       backgroundColor: headerBackgroundColor,
       foregroundColor: headerForegroundColor,
       type: type,
     );