Closed
Description
Snippet
class A{
final bool b;
A({this.b = false});
}
class _B extends A{
_B({super.b = true});
}
class _C extends A{
_C(): super.b = true;
}
void fn(){
_B();
_C();
}
What I want
I want to avoid _B({b: true})
when I can set in constructor and to pass analyzer lints
Problem
B.b: is unused. (Okay. It looks like expected. But it has not hotfix by analyzer and I create hotfix as _C
class)
C.b: error: 'b' isn't a field in the enclosing class
.

Version
Dart SDK version: 3.5.4 (stable) (Wed Oct 16 16:18:51 2024 +0000) on "macos_arm64"