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