onConfirm property

FutureOr<T?> Function()? onConfirm
final

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;