Callback to be called after the user views the error, and taps OK in the dialog.
final VoidCallback? onOk;