OpenCustomSheet constructor

const OpenCustomSheet({
  1. bool barrierDismissible = true,
  2. Color? barrierColor,
  3. String? barrierLabel,
  4. dynamic onClose(
    1. dynamic
    )?,
  5. required Widget body({
    1. ScrollController? scrollController,
    }),
  6. bool scrollable = false,
  7. bool expand = true,
  8. double initialChildSize = 0.5,
  9. double minChildSize = 0.25,
  10. double maxChildSize = 1.0,
  11. Color? backgroundColor,
  12. Color? handleColor,
  13. ShapeBorder? sheetShape,
  14. EdgeInsetsGeometry? sheetPadding,
  15. Color? firstButtonColor,
  16. Color? secondButtonColor,
  17. Color? firstButtonTextColor,
  18. Color? secondButtonTextColor,
  19. String? confirmButtonText,
  20. String? cancelButtonText,
  21. EdgeInsetsGeometry? padding,
  22. double? buttonSpacing,
  23. bool showDefaultButtons = false,
})

Creates an instance of OpenCustomSheet with the specified properties.

The body parameter is required and must not be null. Other parameters are optional and have default values if not specified.

Implementation

const OpenCustomSheet({
  this.barrierDismissible = true,
  this.barrierColor,
  this.barrierLabel,
  this.onClose,
  required this.body,
  this.scrollable = false,
  this.expand = true,
  this.initialChildSize = 0.5,
  this.minChildSize = 0.25,
  this.maxChildSize = 1.0,
  this.backgroundColor,
  this.handleColor,
  this.sheetShape,
  this.sheetPadding,
  this.firstButtonColor,
  this.secondButtonColor,
  this.firstButtonTextColor,
  this.secondButtonTextColor,
  this.confirmButtonText,
  this.cancelButtonText,
  this.padding,
  this.buttonSpacing,
  this.showDefaultButtons = false, // Changed default to false
});