setError method

void setError({
  1. Exception? error,
  2. ResourceStateEnum state = ResourceStateEnum.ERROR,
  3. bool notify = true,
})

Implementation

void setError({
  Exception? error,
  ResourceStateEnum state = ResourceStateEnum.ERROR,
  bool notify = true,
}) {
  setState(state: state, error: error, notify: notify);
}