AlertDialogConfig constructor

const AlertDialogConfig({
  1. String title = '',
  2. String? content,
  3. Widget? iconWidget,
  4. bool autoDismiss = false,
  5. int countdownDuration = 0,
  6. ButtonConfig? confirmConfig,
  7. ButtonConfig? cancelConfig,
  8. List<ButtonConfig> itemList = const [],
  9. @Deprecated('Use cancelConfig instead') String? cancelText,
  10. @Deprecated('Use confirmConfig instead') String? defaultText,
  11. @Deprecated('Use confirmConfig with type = TextColorPreset.red instead') bool isDestructive = false,
  12. @Deprecated('Use confirmConfig.onClick instead') VoidCallback? defaultCallback,
})

Implementation

const AlertDialogConfig({
  this.title = '',
  this.content,
  this.iconWidget,
  this.autoDismiss = false,
  this.countdownDuration = 0,
  this.confirmConfig,
  this.cancelConfig,
  this.itemList = const [],
  @Deprecated('Use cancelConfig instead')
  this.cancelText,
  @Deprecated('Use confirmConfig instead')
  this.defaultText,
  @Deprecated('Use confirmConfig with type = TextColorPreset.red instead')
  this.isDestructive = false,
  @Deprecated('Use confirmConfig.onClick instead')
  this.defaultCallback,
});