Flutter 에러1 Flutter 문법 에러 문제 vscode에서 flutter를 코딩중이던 어느날 갑자기 잘만 적용되던 코드가 위 사진 처럼 틀렸다고 나오기 시작한다. 9번째 줄에 아래와 같은 코드에서 key 를 설정 해줘야 한다는 것 같은 에러메세지가 뜬다. User(this.id, this.pw, this.createTime); Non-nullable instance field 'key' must be initialized. Try adding an initializer expression, or add a field initializer in this constructor, or mark it 'late'. firebase_database 패키지도 분명 쓰고는 있는데 위 처럼 뭔가 안쓰고 있다고 나온다. 당장 뭔가 되어야 하는 코딩 개초보인 나에.. 2021. 6. 4. 이전 1 다음