Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- react env
- ngrok실행
- Git
- github
- CSS
- react
- API token
- nextjs 설치
- 컨디셔널 렌더링
- SCSS
- typescript react
- getModifierState
- github io
- bootstrap
- ngrok설치
- nextjs .env
- styled components
- fetch
- icon
- rewrites
- createGlobalStyle
- API 토큰
- dart 변수
- input type=file
- nextjs
- npm styled-reset
- There isn’t anything to compare
- react typescript
- git lab
- next.js css
Archives
- Today
- Total
목록const (1)
꾸준히 성장하는 개발자
[dart] dart 변수
변수를 만드는 방법 var, 타입 지정 void main() { var name = 'flutter'; String name2 = 'dart'; name='flutter2'; print(name); print(name2); } 함수나 메소드 내부에 지역변수를 선언할 때는 var를 사용 class에서 변수나 property를 선언할 때는 타입을 지정해 준다. 위처럼 작성했을 때는 업데이트가 가능하다. 단 처음 선언되어 있던 타입으로만 업데이트가 가능 string이었는데 int로 변경되진 않음 Dynamic 타입 //Dynamic 타입 void main() { var name; name='hello'; name=12; print(name); } 변수를 선언할 때 dynamic을 쓰거나 값을 지정하지 않으면 ..
Dart
2023. 1. 25. 18:50