DialogView constructor

const DialogView({
  1. Key? key,
  2. String? content,
  3. Widget? contentWidget,
  4. bool isCloseIcon = false,
  5. bool? isDismissible = true,
  6. String? secondButtonText,
  7. dynamic onMainActionFunction(
    1. BuildContext
    )?,
  8. required DialogType dialogType,
  9. dynamic onSecondaryActionFunction(
    1. BuildContext
    )?,
  10. String? mainButtonText = 'close',
})

Implementation

const DialogView(
    {Key? key,
    this.content,
    this.contentWidget,
    this.isCloseIcon = false,
    this.isDismissible = true,
    this.secondButtonText,
    this.onMainActionFunction,
    required this.dialogType,
    this.onSecondaryActionFunction,
    this.mainButtonText = 'close'})
    : super(key: key);