sdk
sdk copied to clipboard
`void_checks` quick-fix suggestion
Repro:
void foo(void _) {}
void bar({void value}) {}
void main() {
foo(0);
bar(value: 0);
}
When the value is required, we should replace it with null, and when it isn't, we should remove the given parameter.
CC @bwilkerson