copyWith method

AcpError copyWith({
  1. Object? code = _acpCopyWithAbsent,
  2. Object? message = _acpCopyWithAbsent,
  3. Object? data = _acpCopyWithAbsent,
})

Implementation

AcpError copyWith({
  Object? code = _acpCopyWithAbsent,
  Object? message = _acpCopyWithAbsent,
  Object? data = _acpCopyWithAbsent,
}) => AcpError(
  code: identical(code, _acpCopyWithAbsent) ? this.code : code as ErrorCode,
  message: identical(message, _acpCopyWithAbsent)
      ? this.message
      : message as String,
  data: identical(data, _acpCopyWithAbsent) ? this.data : data as Object?,
);