We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
state
Describe the bug I got a warning when creating the Provider.
To Reproduce
import 'package:riverpod_annotation/riverpod_annotation.dart'; part 'main.g.dart'; @riverpod class LintTest extends _$LintTest { @override String build() => ""; String get get => state; // warning String method() => state; }
Expected behavior
get only uses state, which is reasonable and requires no warning, just like method.
get
method
The text was updated successfully, but these errors were encountered:
Nope it isn't :)
No public getter/properties
Sorry, something went wrong.
Would you mind elaborating on why getters are not reasonable? Thanks in advance.
rrousselGit
No branches or pull requests
Describe the bug
I got a warning when creating the Provider.
To Reproduce
Expected behavior
get
only uses state, which is reasonable and requires no warning, just likemethod
.The text was updated successfully, but these errors were encountered: