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