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 |
Tags
- UserAccountsDrawerHeader
- 로그인
- Provider
- 상태관리
- 함수
- Cocoa touch Framework
- IOS
- go_router
- non-nullable
- 1과목
- Null Safety
- Kotlin
- firebase
- java
- flutter
- 안드로이드 스튜디오
- firebase_auth
- setState
- 이메일
- 회원가입
- swift
- auth
- 정보처리기사
- GetX
- dart
- BottomNavigationBar
- 변수
- Android
- StatefulWidget
- 안드로이드
Archives
- Today
- Total
목록Null Safety (1)
앱 개발 공부방
flutter - Null Safety
Null safety null 관련 에러를 runTime이 아닌 edit time에 체크해서 코드가 작성될 때 null 에러가 발생할 수 없게 해 줍니다 즉 모든 변수는 null이 될 수 없고(non-nullable) null이 들어가려면 선언 시? 를 사용하여 nullable 변수로 선언한다 void main() { int ageNull; int? ageNullable; print(ageNull);//error: The non-nullable local variable 'ageNull' must be assigned before it can be used. print(ageNullable); } 이렇던?를 붙이지 않으면 위처럼 non-nullable을 사용하려면 초기화를 시켜줘야 한다 void main..
FLUTTER
2023. 12. 5. 12:30