exit(0);

실행 시 앱이 종료된다.

Flutter how to programmatically exit the app