connectedDisplaysChangedStream property

Stream<int?> get connectedDisplaysChangedStream

Subscribe to the stream to get notifications about connected / disconnected displays Streams 1 for new connected display and 0 for disconnected display

Implementation

Stream<int?> get connectedDisplaysChangedStream {
  return _displayEventChannel.receiveBroadcastStream().cast();
}