sort_unnamed_constructors_first

Group: style

Maturity: stable

Linter v0.1.11

Since info is static, may be stale

View all Lint Rules

Using the Linter

DO sort unnamed constructor declarations first, before named ones.

GOOD:

abstract class CancelableFuture<T> implements Future<T>  {
  factory CancelableFuture(computation()) => ...
  factory CancelableFuture.delayed(Duration duration, [computation()]) => ...
  ...
}

BAD:

class _PriorityItem {
  factory _PriorityItem.forName(bool isStatic, String name, _MemberKind kind) => ...
  _PriorityItem(this.isStatic, this.kind, this.isPrivate);
  ...
}