orientations property
List<DeviceOrientation>
orientations
Device orientation after full screen.
Implementation
List<DeviceOrientation> get orientations {
if (config.deviceOrientationsEnterFullScreen != null) {
return config.deviceOrientationsEnterFullScreen!;
} else if (size.width > size.height) {
return <DeviceOrientation>[
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
];
} else if (size.width < size.height) {
return <DeviceOrientation>[
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
];
} else {
return DeviceOrientation.values;
}
}