setRequestedOrientation static method
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
});
}