withErrorText method

  1. @override
UserException withErrorText(
  1. String? newErrorText
)
override

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,
);