目錄

combinators_ordering

依字母順序排序組合器名稱。

此規則自 Dart 2.19 起提供。

此規則提供快速修復

詳細資訊

#

應該依字母順序排序組合器名稱。

錯誤範例

dart
import 'a.dart' show B, A hide D, C;
export 'a.dart' show B, A hide D, C;

正確範例

dart
import 'a.dart' show A, B hide C, D;
export 'a.dart' show A, B hide C, D;

用法

#

若要啟用 combinators_ordering 規則,請在您的analysis_options.yaml 檔案中的 linter > rules 下新增 combinators_ordering

analysis_options.yaml
yaml
linter:
  rules:
    - combinators_ordering