avoid_private_typedef_functions

Group: style

Maturity: stable

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

View the Project on GitHub dart-lang/linter

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

BAD:

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

GOOD:

m(void Function() f);