diff --git a/website/src/content/docs/async/state.md b/website/src/content/docs/async/state.md index 0fe8151d..0e563c04 100644 --- a/website/src/content/docs/async/state.md +++ b/website/src/content/docs/async/state.md @@ -70,7 +70,7 @@ final s = asyncSignal(AsyncState.loading()); print(s.isRefreshing); // false s.value = AsyncState.error('error', null, isLoading: true); print(s.isRefreshing); // true -s.value = AsyncState.data(1, isLoading: true); +s.value = AsyncData(1, isLoading: true); print(s.isRefreshing); // true ```