GenericDialogBox constructor

const GenericDialogBox({
  1. Key? key,
  2. required String headerText,
  3. required Widget content,
  4. String primaryButtonText = '',
  5. VoidCallback? onPrimaryButtonPressed,
  6. String secondaryButtonText = '',
  7. VoidCallback? onSecondaryButtonPressed,
  8. bool isFullScreen = false,
  9. bool isShowTopCloseButton = true,
  10. bool isPrimaryButtonDisabled = false,
  11. DialogWidthType? widthType,
  12. double? customWidth,
})

Implementation

const GenericDialogBox({
  super.key,
  required this.headerText,
  required this.content,
  this.primaryButtonText = '',
  this.onPrimaryButtonPressed,
  this.secondaryButtonText = '',
  this.onSecondaryButtonPressed,
  this.isFullScreen = false,
  this.isShowTopCloseButton = true,
  this.isPrimaryButtonDisabled = false,
  this.widthType,
  this.customWidth,
}) : assert(
widthType != DialogWidthType.custom || customWidth != null,
'customWidth must be provided when widthType is custom',
);