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 |
Tags
- 변수
- 이메일
- auth
- 정보처리기사
- firebase_auth
- java
- GetX
- StatefulWidget
- Android
- 로그인
- IOS
- Kotlin
- 안드로이드
- non-nullable
- Null Safety
- setState
- firebase
- 안드로이드 스튜디오
- go_router
- Provider
- BottomNavigationBar
- swift
- 회원가입
- 함수
- UserAccountsDrawerHeader
- 1과목
- Cocoa touch Framework
- flutter
- 상태관리
- dart
Archives
- Today
- Total
목록non-nullable (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