Skip to content

Commit a957244

Browse files
committed
Fix equivalence: add .value to watch() for watchValue() comparison
1 parent f13c2ae commit a957244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/documentation/watch_it/more_watch_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final manager = watch(di<CounterManager>());
3434
3535
// These are equivalent:
3636
final count = watchValue((CounterManager m) => m.count);
37-
final count = watch(di<CounterManager>().count);
37+
final count = watch(di<CounterManager>().count).value;
3838
```
3939

4040
**Why use the convenience functions?**

0 commit comments

Comments
 (0)