AlertDialogConfig constructor
const
AlertDialogConfig({
- String title = '',
- String? content,
- Widget? iconWidget,
- bool autoDismiss = false,
- int countdownDuration = 0,
- ButtonConfig? confirmConfig,
- ButtonConfig? cancelConfig,
- List<
ButtonConfig> itemList = const [], - @Deprecated('Use cancelConfig instead') String? cancelText,
- @Deprecated('Use confirmConfig instead') String? defaultText,
- @Deprecated('Use confirmConfig with type = TextColorPreset.red instead') bool isDestructive = false,
- @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,
});