use_function_type_syntax_for_parameters

Group: style

Maturity: stable

Dart SDK: >= 2.1.1-dev.0.0 • (Linter v0.1.72)

View the Project on GitHub dart-lang/linter

Use generic function type syntax for parameters.

BAD:

Iterable<T> where(bool predicate(T element)) {}

GOOD:

Iterable<T> where(bool Function(T) predicate) {}