avoid-unnecessary-overrides
Warns when a parent declaration is overridden by a declaration without an implementation.
Example
❌ Bad:
abstract class B {
String get field;
void foo();
}
abstract class A extends B {
String get field; // LINT
Future<void> foo(); // LINT
}
mixin M on B {
String get field; // LINT
}
✅ Good:
abstract class B {
String get field;
void foo();
}
class C extends B {
String get field => 'hi';
Future<void> foo() async {}
}