DisplayManager class

Provide you with the method for you to work with SecondaryDisplay.

Constructors

DisplayManager()

Properties

connectedDisplaysChangedStream Stream<int?>?
Subscribe to the stream to get notifications about connected / disconnected displays Streams 1 for new connected display and 0 for disconnected display
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDisplays({String? category}) Future<List<Display>?>
Gets all currently valid logical displays of the specified category.
getNameByDisplayId(int displayId, {String? category}) Future<String?>
Gets the name of the display by displayId of getDisplays.
getNameByIndex(int index, {String? category}) Future<String?>
Gets the name of the display by index of getDisplays.
hideSecondaryDisplay({required int displayId}) Future<bool?>?
Hides secondary display that is attached to the specified display
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showSecondaryDisplay({required int displayId, required String routerName}) Future<bool?>?
Creates a new secondary display that is attached to the specified display
toString() String
A string representation of this object.
inherited
transferDataToPresentation(dynamic arguments) Future<bool?>?
Transfer data to a secondary display

Operators

operator ==(Object other) bool
The equality operator.
inherited