ifErrorTerminate method

Response<T> ifErrorTerminate({
  1. int? code,
})

Implementation

Response<T> ifErrorTerminate({int? code}) {
  if (!isError) return this;
  if (code == null) return _Terminator<T>(response: this);
  if (hasError(code)) return _Terminator<T>(response: this);
  return this;
}