Im following offical documentation and while trying to use @riverpod annotation in my code im getting error: "Undefined class 'HelloWorldRef' "
I tried to create provider like in documentation:
@riverpod
String helloWorld(HelloWorldRef ref) {
return 'Hello world';
}
You have first to ensure that you have all packages installed in your project.
now you can run the code-generator with
flutter pub run build_runner watch