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.