withDialog method
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
@useResult
@mustBeOverridden
UserException withDialog(bool ifOpenDialog) => UserException(
message,
reason: reason,
code: code,
ifOpenDialog: ifOpenDialog,
errorText: errorText,
);