unnecessary_this

Group: style

Maturity: stable

Dart SDK: >= 2.0.0 • (Linter v0.1.30)

View the Project on GitHub dart-lang/linter

From the style guide:

DON'T use this when not needed to avoid shadowing.

BAD:

class Box {
  var value;
  void update(new_value) {
    this.value = new_value;
  }
}

GOOD:

class Box {
  var value;
  void update(new_value) {
    value = new_value;
  }
}

GOOD:

class Box {
  var value;
  void update(value) {
    this.value = value;
  }
}