onError method

HttpResult<T> onError(
  1. OnError onError
)

Implementation

HttpResult<T> onError(OnError onError) {
  if (error) {
    onError.call(response);
  }

  return this;
}