setGravityRotationEnabled method
Enable or disable gravity-based (sensor) orientation detection.
When enabled is false, tilting the device no longer triggers
fullscreen / portrait switches — only explicit button taps or API
calls (enterFullscreen / exitFullscreen) work.
Implementation
Future<void> setGravityRotationEnabled(bool enabled) =>
_invoke('setGravityRotationEnabled', {'enabled': enabled});