AppDialogue constructor

const AppDialogue({
  1. Key? key,
  2. required String heading,
  3. required String description,
  4. bool isSingleBtn = false,
  5. String positiveButtonText = "Yes",
  6. String negativeButtonText = "No",
  7. VoidCallback? onPositivePressed,
  8. VoidCallback? onNegativePressed,
  9. String iconPath = "assets/image/info_icon.png",
})

Implementation

const AppDialogue({
  super.key,
  required this.heading,
  required this.description,
  this.isSingleBtn = false,
  this.positiveButtonText = "Yes",
  this.negativeButtonText = "No",
  this.onPositivePressed,
  this.onNegativePressed,
  this.iconPath = "assets/image/info_icon.png",
});