Group: style

Maturity: stable

Linter v0.1.1

Since info is static, may be stale

View all Lint Rules

Using the Linter

From the style guide:

DO use ; instead of {} for empty constructor bodies.

In Dart, a constructor with an empty body can be terminated with just a semicolon. This is required for const constructors. For consistency and brevity, other constructors should also do this.


class Point {
  int x, y;
  Point(this.x, this.y);


class Point {
  int x, y;
  Point(this.x, this.y) {}