prefer-abstract-final-static-class
Suggests adding abstract final
to classes with only static members to avoid them being instantiated or being used in inheritance.
Example
❌ Bad:
// LINT
class Static {
static final field = 'some value';
}
✅ Good:
abstract final class Static {
static final field = 'some value';
}
class SomeOtherClass {
final String value;
const SomeOtherClass(this.value);
}