- <모든 파일 에서 설정하기>
- open analysis_options.yaml
- 아래와 같이 작성하기
linter:
rules:
prefer_const_constructors : false
- open the terminal
dart fix --apply적고 엔터
- <현재 파일에서만 설정하기>
해당하는 파일에 위치 상관없이 아래와 똑같이 한줄적기
// ignore_for_file: prefer_const_constructors
Uploaded by N2T
'coding' 카테고리의 다른 글
| dart : 삼항연산자 문법 예시 (0) | 2022.08.04 |
|---|---|
| unix command 종류 및 형식 (0) | 2022.08.02 |
| flutter : Curved Navigation Bottom Bar (0) | 2022.07.27 |
| python : datetime 모듈 strftime, strptime (1) | 2022.07.10 |
| Dart : List 심화형 함수 (forEach, map, fold) (1) | 2022.06.09 |