hideSecondaryDisplay method

Future<bool?>? hideSecondaryDisplay({
  1. required int displayId,
})

Hides secondary display that is attached to the specified display

[displayId] The id of display to which the secondary display should be attached.

return Future<bool> about the status has been display or not

Implementation

Future<bool?>? hideSecondaryDisplay({required int displayId}) async {
  return await _displayMethodChannel?.invokeMethod<bool?>(
      _hidePresentation,
      "{"
      "\"displayId\": $displayId"
      "}");
}