MyDialog constructor

const MyDialog({
  1. String title = "warning",
  2. DialogType type = DialogType.warning,
  3. String body = "",
  4. String? confirmText,
  5. bool needDescription = false,
  6. Widget? extra,
  7. String defaultButtonText = "OK",
  8. bool hasCancel = true,
  9. bool needPassword = false,
  10. double borderRadius = 12,
  11. EdgeInsets contentPadding = const EdgeInsets.all(4),
  12. EdgeInsets padding = const EdgeInsets.all(8),
  13. String descriptionLabel = "Description",
})

Implementation

const MyDialog(
    {
    this.title = "warning",
    this.type = DialogType.warning,
    this.body = "",
    this.confirmText,
    this.needDescription = false,
    this.extra,
    this.defaultButtonText = "OK",
    this.hasCancel = true,
    this.needPassword = false,
    this.borderRadius = 12,
    this.contentPadding = const EdgeInsets.all(4),
    this.padding = const EdgeInsets.all(8),
    this.descriptionLabel="Description"});