setRequestedOrientation static method

Future<void> setRequestedOrientation(
  1. int requestedOrientation
)

Changes the orientation of this activity.

Android only. For more information on the native API, see the Android API reference.

Implementation

static Future<void> setRequestedOrientation(int requestedOrientation) {
  return _channel.invokeMethod(
      Functions.setRequestedOrientation, <String, dynamic>{
    Parameters.requestedOrientation: requestedOrientation
  });
}