[Flutter] Flame 의 async 문제

in flutter •  4 years ago 

튜터리얼에는

void main() async {

Util flameUtil = Util();
await flameUtil.fullScreen();
await flameUtil.setOrientation(DeviceOrientation.portraitUp);

...

}

이라고 나와있지만...
실제로는 이제는 async / await 를 사용하지 않는다고 한다...
그냥..

void main() {

Util flameUtil = Util();
flameUtil.fullScreen();
flameUtil.setOrientation(DeviceOrientation.portraitUp);

...

}

요렇게...

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!