withDialog method

  1. @override
UserException withDialog(
  1. bool ifOpenDialog
)
override

Defines if this exception should open a dialog or not. If not, it will be shown in a different way, usually showing errorText somewhere in the UI.

Implementation

@override
UserException withDialog(bool ifOpenDialog) => ConnectionException(
  host: host,
  onRetry: onOk,
  errorText: errorText,
  ifOpenDialog: ifOpenDialog,
);