GenericDialogBox constructor
const
GenericDialogBox({
- Key? key,
- required String headerText,
- required Widget content,
- String primaryButtonText = '',
- VoidCallback? onPrimaryButtonPressed,
- String secondaryButtonText = '',
- VoidCallback? onSecondaryButtonPressed,
- bool isFullScreen = false,
- bool isShowTopCloseButton = true,
- bool isPrimaryButtonDisabled = false,
- DialogWidthType? widthType,
- 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',
);