**Describe the issue** [prefer_void_to_null](https://dart-lang.github.io/linter/lints/prefer_void_to_null.html) should not be triggered for local variable. The reason is: local variable can not be `void`. **To Reproduce** ```dart void f() { Null a; a.toString(); } ``` **Expected behavior** There is no lint.