setStateError method

void setStateError(
  1. Error value
)

Implementation

void setStateError(Error value) => {
      data.value = null,
      loading.value = null,
      error.value = value,
    };