onScreenOrientationLockChanged property

Stream<ScreenOrientationLockChangedEvent> get onScreenOrientationLockChanged

Fired when a page calls screen.orientation.lock() or screen.orientation.unlock() while device emulation is enabled. This allows the DevTools frontend to update the emulated device orientation accordingly.

Implementation

Stream<ScreenOrientationLockChangedEvent>
get onScreenOrientationLockChanged => _client.onEvent
    .where((event) => event.name == 'Emulation.screenOrientationLockChanged')
    .map(
      (event) => ScreenOrientationLockChangedEvent.fromJson(event.parameters),
    );