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
Is there any lint to avoid dynamic constructor arguments?
class FavoriteFoldersCardWidget extends StatelessWidget { final TextStyle _h1; const FavoriteFoldersCardWidget({ super.key, required h1, // this is dynamic by mistake }) : _h1 = h1; @override Widget build(BuildContext context) { return Card( surfaceTintColor: Colors.blue, child: Padding( padding: const EdgeInsets.all(15.0), child: Text("hello word", style: _h1), ), ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there any lint to avoid dynamic constructor arguments?
The text was updated successfully, but these errors were encountered: