Group: errors

Maturity: stable

Dart SDK: >= 2.1.0 • (Linter v0.1.59)

Since info is static, may be stale

View all Lint Rules

Using the Linter

DON'T use the type Null where void would work.


Null f() {}
Future<Null> f() {}
Stream<Null> f() {}
f(Null x) {}


void f() {}
Future<void> f() {}
Stream<void> f() {}
f(void x) {}

Some exceptions include formulating special function types:

Null Function(Null, Null);

and for making empty literals which are safe to pass into read-only locations for any type of map or list:

<int, Null>{};