DialogHelper class

Helper for showing confirmation dialogs.

Constructors

DialogHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

showConfirmation(BuildContext context, {required String title, required String content, String confirmText = 'Confirm', String cancelText = 'Cancel', Color? confirmColor, IconData? titleIcon, Color? titleIconColor}) Future<bool>
Shows a confirmation dialog with customizable title, content, and buttons.
showDestructiveConfirmation(BuildContext context, {required String title, required String content, String confirmText = 'Delete', String cancelText = 'Cancel'}) Future<bool>
Shows a destructive confirmation dialog (for delete operations).