addProps method
Adds moreProps
to the properties of the UserException.
If the exception already had props, the new moreProps
will be merged with those.
Implementation
@useResult
UserException addProps(Map<String, dynamic>? moreProps) {
if (moreProps == null)
return this;
else
return AdvancedUserException(
message,
reason: reason,
code: code,
onOk: onOk,
onCancel: onCancel,
props: props.addMap(moreProps),
hardCause: hardCause,
errorText: errorText,
ifOpenDialog: ifOpenDialog,
);
}