setPreferredOrientations static method

Future<void> setPreferredOrientations(
  1. List<DeviceOrientation> orientations
)

Sets the preferred screen orientations.

Implementation

static Future<void> setPreferredOrientations(
    List<DeviceOrientation> orientations) async {
  await SystemChrome.setPreferredOrientations(orientations);
}