showSecondaryDisplay method
Creates a new secondary display that is attached to the specified display
Before displaying a secondary display, please define the UI you want to display in the [Route]. If we can't find the router name, the secondary display a blank screen [displayId] The id of display to which the secondary display should be attached. [routerName] The screen you want to display on the secondary display.
return Future<bool> about the status has been display or not
Implementation
Future<bool?>? showSecondaryDisplay({required int displayId, required String routerName}) async {
return await _displayMethodChannel.invokeMethod<bool?>(_showPresentation, {
"displayId": displayId,
"routerName": routerName,
});
}