onConfirm property
A required callback invoked when the user confirms the action. This handles the primary operation, such as saving data or executing a command. Called after the dialog is dismissed with true.
Implementation
final VoidCallback onConfirm;