withDialog method

  1. @useResult
  2. @mustBeOverridden
  3. @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

@useResult
@mustBeOverridden
@override
UserException withDialog(bool ifOpenDialog) => AdvancedUserException(
      message,
      reason: reason,
      code: code,
      onOk: onOk,
      onCancel: onCancel,
      props: props,
      hardCause: hardCause,
      errorText: errorText,
      ifOpenDialog: ifOpenDialog,
    );