avoid_private_typedef_functions

Group: style

Maturity: stable

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

Since info is static, may be stale
effective dart

View all Lint Rules

Using the Linter

AVOID private typedef functions used only once. Prefer inline function syntax.

BAD:

typedef void _F();
m(_F f);

GOOD:

m(void Function() f);