1. pubspec.yaml
2. analysis_options.yaml의 역할?
You can customize static analysis to look for a variety of potential problems, including errors and warnings specified in the Dart language spec. You can also configure the linter, one of the analyzer’s plugins, to ensure that your code complies with the Dart Style Guide and other suggested guidelines in Effective Dart.
include: package:lints/recommended.yaml
analyzer:
exclude: [build/**]
language:
strict-casts: true
strict-raw-types: true
linter:
rules:
- cancel_subscriptions
- Use include: url to bring in options from the specified URL—in this case, from a file in the lints package. Because YAML doesn’t allow duplicate keys, you can include at most one file.
- Use the analyzer: entry to customize static analysis: enabling stricter type checks, excluding files, ignoring specific rules, changing the severity of rules, or enabling experiments.
- Use the linter: entry to configure linter rules.
참고
https://dart.dev/guides/language/analysis-options
'App > Flutter' 카테고리의 다른 글
Null Safety, setState() (0) | 2022.09.12 |
---|---|
Udemy - Section4. Widgets,Styling, Adding Logic (0) | 2022.09.06 |
FireBase connection Error (0) | 2022.08.31 |
Flutter 기본 위젯 4가지 & 레이아웃 & stateful 위젯 vs. stateless 위젯 (0) | 2022.08.26 |
Flutter-Provider (0) | 2022.08.24 |