Closed koji-1009 closed 2 hours ago
It isn't exported on purpose.
The annotation package only exports what the generated code uses. You're not meant to import riverpod_annotation as a replacement to Riverpod.
OK, so riverpod_generator is a mechanism to generate, not to provide some kind of meta-programming.
I agree with your design. Thanks for the review.
Is your feature request related to a problem? Please describe. It would be nice if riverpod_annotation would export the
Ref
for riverpod 2.6.0 support.current (riverpod_annotaion v2.6.0)
want
Describe the solution you'd like Add the
Ref
type to the export list inriverpod_annotation/riverpod_annotatino.dart
.Describe alternatives you've considered none.
Additional context https://github.com/rrousselGit/riverpod/blob/master/packages/riverpod_generator/CHANGELOG.md#260---2024-10-20