class User {
String name;
int age;
User(this.name, this.age);
}
이렇게 썼는데 오류가 안남...
non-nullable 변수를 선언할 때는 바로 초기화 안하면 late 연산자 써야된다고 배웠는데 왜 오류가 안나..?
class User {
String name;
int age;
User(this.name, this.age);
}
이렇게 썼는데 오류가 안남...
non-nullable 변수를 선언할 때는 바로 초기화 안하면 late 연산자 써야된다고 배웠는데 왜 오류가 안나..?
댓글 0