Skip to content

Commit f8734c9

Browse files
rxlabzrrousselGit
andauthored
Fix doc typo (#4678)
Fix a typo in the `requireValue` example ## Checklist Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). - [ ] I have updated the `CHANGELOG.md` of the relevant packages. Changelog files must be edited under the form: ```md ## Unreleased fix/major/minor - Description of your change. (thanks to @yourgithubid) ``` - [ ] If this contains new features or behavior changes, I have updated the documentation to match those changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Corrected AsyncValue documentation examples to reference the accurate API method, ensuring consistent and correct guidance for developers implementing asynchronous functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Remi Rousselet <darky12s@gmail.com>
1 parent 3f53dd7 commit f8734c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/riverpod/lib/src/core/async_value.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ class AsyncValueIsLoadingException implements Exception {
407407
///
408408
/// ```dart
409409
/// Widget build(BuildContext context, WidgetRef ref) {
410-
/// // Reading .requiredValue will be throw both on loading and error states.
411-
/// final User user = ref.watch(userProvider).requiredValue;
410+
/// // Reading .requireValue will be thrown both on loading and error states.
411+
/// final User user = ref.watch(userProvider).requireValue;
412412
///
413413
/// ...
414414
/// }

0 commit comments

Comments
 (0)