setOrientationLandscape static method
void
setOrientationLandscape()
Set device orientation to landscape mode.
Implementation
static void setOrientationLandscape() {
service.SystemChrome.setPreferredOrientations([
service.DeviceOrientation.landscapeRight,
service.DeviceOrientation.landscapeLeft,
]);
}