setOrientationState method

Future<void> setOrientationState(
  1. bool enabled
)

Sets the orientation lock to the desired status.

Implementation

Future<void> setOrientationState(bool enabled) {
  return OrientationStateCheckerPlatform.instance
      .setOrientationState(enabled);
}