DialogPresets class

Predefined dialog configurations for common use cases

Constructors

DialogPresets()
const

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

showAreYouSure(BuildContext context, {required String message, String? title, String confirmText = 'Yes', String cancelText = 'No'}) Future<bool?>
Shows a "Are you sure?" confirmation dialog
showClearAllConfirmation(BuildContext context, {String? itemType}) Future<bool?>
Shows a "Clear all" confirmation dialog
showDeleteConfirmation(BuildContext context, {String? itemName}) Future<bool?>
Shows a delete confirmation dialog
showDiscardChangesConfirmation(BuildContext context) Future<bool?>
Shows a discard changes confirmation dialog
showFeatureNotAvailable(BuildContext context) Future<bool?>
Shows a "Feature not available" dialog
showLogoutConfirmation(BuildContext context) Future<bool?>
Shows a logout confirmation dialog
showUpdateAvailable(BuildContext context, {String? version}) Future<bool?>
Shows a "Update available" dialog