avoid_private_typedef_functions   
プライベートなtypedef関数を避ける。
詳細
#避けるべき:一度しか使用されないプライベートなtypedef関数。インライン関数の構文を優先してください。
悪い例
dart
typedef void _F();
m(_F f);良い例
dart
m(void Function() f);有効にする
#avoid_private_typedef_functions ルールを有効にするには、analysis_options.yaml ファイルの linter > rules の下に avoid_private_typedef_functions を追加してください。
analysis_options.yaml
yaml
linter:
  rules:
    - avoid_private_typedef_functions代わりにYAMLマップ構文を使用してリンタールールを設定している場合は、linter > rules の下に avoid_private_typedef_functions: true を追加してください。
analysis_options.yaml
yaml
linter:
  rules:
    avoid_private_typedef_functions: true