setMirrorMode method

Future<void> setMirrorMode(
  1. MirrorModeInfo info
)

Sets the display mode to the specified mirror mode. Each call resets the state from previous calls. Calling setDisplayProperties() will fail for the mirroring destination displays. NOTE: This is only available to Chrome OS Kiosk apps and Web UI. |info|: The information of the mirror mode that should be applied to the display mode. |callback|: Empty function called when the function finishes. To find out whether the function succeeded, runtime.lastError should be queried.

Implementation

Future<void> setMirrorMode(MirrorModeInfo info) async {
  await promiseToFuture<void>(
      $js.chrome.system.display.setMirrorMode(info.toJS));
}