[Dart] 시작

Aiden·2023년 3월 10일
0

dart

목록 보기
1/5

Dart언어는 기본적으로 main 함수에서 시작한다.

main(){
}
함수에서의 리턴 값이 없는 경우에는 void를 함수 앞에 작성한다.
void main(){
}

void main() as the entry point for every dart application and its recommended in the dart script too.
The void main() indicates that the main() function will not return any value.

관련 글 - why do we use void main in dart by Prashant Mishra.

profile
PM에서 개발자로

0개의 댓글