onConfirm property

void Function(String result) onConfirm
final

The callback function invoked when the user confirms the input (via submission or option selection).

Type: void Function(String result)

Usage: Receives the confirmed text or selected option as a string. Required for handling the dialog result, such as executing the command.

Implementation

final void Function(String result) onConfirm;