setLandscape function
Implementation
Future<void> setLandscape() {
return SystemChrome.setPreferredOrientations((<DeviceOrientation>[
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]));
}
Future<void> setLandscape() {
return SystemChrome.setPreferredOrientations((<DeviceOrientation>[
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]));
}