withDialog method

  1. @useResult
  2. @mustBeOverridden
UserException withDialog(
  1. bool ifOpenDialog
)

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