void_checks

Group: style

Maturity: stable

Linter v0.1.49

Since info is static, may be stale
corerecommendedflutter

View all Lint Rules

Using the Linter

DO NOT assign to void.

BAD:

class A<T> {
  T value;
  void test(T arg) { }
}

void main() {
  A<void> a = A<void>();
  a.value = 1; // LINT
  a.test(1); // LINT
}