ITADN

Lint for Uppercase refs?

#22Openclragon 创建于 2025-03-25
C
clragoncommented
Since I started using this package, I find the paradigm of naming Refs with a wider scope than just the current widget with an uppercase name just like types to be compelling. However, the dart linter of course does not enjoy this. `non_constant_identifier_names` will yell at us for declaring: ```dart final MyStuffRef = Ref<MyStuff>(); ``` We could disable this lint app-wide, however that would erase actual violations. I dont know much about how custom linting logic is added, but are there chances we could have some support from the package / packages / an optional lint rule that allows this style of Ref?
1 条评论