MyCustomDialog class

Constructors

MyCustomDialog()

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

showConfirmDialog(BuildContext context, {String title = 'Confirmation', required String message, required dynamic onYes(), dynamic onNo()?, dynamic barrierDismissible = true}) → Future<void>
The title parameter is used to specify the title of the confirmation dialog. The message parameter is used to specify the message of the confirmation dialog. The onYes parameter is a callback function that is called when the user clicks the "Yes" button. The onNo parameter is an optional callback function that is called when the user clicks the "No" button. The showLogo parameter is used to specify whether to show the logo in the confirmation dialog.
showInputDialog(BuildContext context, {String title = 'Input Information', required List<Widget> inputItems, required dynamic onSubmit(), String submitText = 'Submit', double minWidth = 400, dynamic barrierDismissible = true}) → Future<void>
Displays an input dialog with a list of input widgets to fill out.
showMessageDialog(BuildContext context, {MessageDialogType type = MessageDialogType.info, String? title, String? message, String closeText = 'Close', bool showIcon = true, dynamic barrierDismissible = true}) → Future<void>
Displays a message dialog with a title, icon, message, and optional logo.
showSelectionDialog(BuildContext context, {String title = 'Select Option', required List<SelectionDialogOption> options, required dynamic onSelected(String), String cancelText = 'Cancel', dynamic barrierDismissible = true}) → Future<void>
Displays a selection dialog with a list of options to choose from.