onConfirm property
Invoked when the user taps the confirm action. Its result is returned
to the caller of showDialog. If null, the confirm button is hidden.
Implementation
final FutureOr<T?> Function()? onConfirm;
Invoked when the user taps the confirm action. Its result is returned
to the caller of showDialog. If null, the confirm button is hidden.
final FutureOr<T?> Function()? onConfirm;