withErrorText method
Adds (or replaces, if it already exists) the given newErrorText
.
If the newErrorText
is null
or empty, it will remove the errorText.
Implementation
@override
UserException withErrorText(String? newErrorText) => ConnectionException(
host: host,
onRetry: onOk,
errorText: newErrorText,
ifOpenDialog: ifOpenDialog,
);