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
signals_avoid_create_in_build_method
class ClassWithALongName { static final iDoNotWantThisSignalNameToAppearEverywhere = SetSignal({1, 2, 3}); } class FalsePositive extends StatelessWidget { const FalsePositive({super.key}); @override Widget build(BuildContext context) { // this gets flagged, even though it is merely a read access on the existing one final shorthand = ClassWithALongName.iDoNotWantThisSignalNameToAppearEverywhere; if (shorthand.isNotEmpty) { return const Placeholder(); } else if (shorthand.first.isOdd) { return const SizedBox(); } else { return Text(shorthand.where((_) => true).toString()); } } }
The text was updated successfully, but these errors were encountered:
Still learning how to best right the lint rules, but will try to update it for this 👍🏼
Sorry, something went wrong.
Started working on this
No branches or pull requests
The text was updated successfully, but these errors were encountered: