avoid_unused_parameters
Severity | Quick Fix | Options |
---|---|---|
Warning | ❌ | ✅ |
Details
DO avoid unused parameters.
Unused parameters should be removed to avoid confusion.
Bad
void log(String a, String b) {
print(a);
}
Good
void log(String a) {
print(a);
}
Severity | Quick Fix | Options |
---|---|---|
Warning | ❌ | ✅ |
DO avoid unused parameters.
Unused parameters should be removed to avoid confusion.
void log(String a, String b) {
print(a);
}
void log(String a) {
print(a);
}