setSystemOrientations static method
void
setSystemOrientations()
Set portrait mode for the app
Implementation
static void setSystemOrientations() {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
}