Skip to content

False positive for "avoid_redundant_argument_values" #58219

@vsevolod07c2

Description

@vsevolod07c2
void main() {
  print(A()); // default
  print(A(null)); // null <-------------- false positive
  print(A('value')); // value
}

class A {
  factory A([String value]) = B;
  A._();
}

class B extends A {
  String value;
  B([this.value = 'default']) : super._();

  @override
  String toString() => value;
}

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestdevexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.linter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions