addScreenShareRequest method

void addScreenShareRequest(
  1. RemoteActivityData data
)

Implementation

void addScreenShareRequest(RemoteActivityData data) {
  // Check if the participant is already in the list
  final exists = _screenShareRequestList.any(
        (item) => item.identity == data.identity,
  );

  if (!exists) {
    _screenShareRequestList.add(data);
    notifyListeners();
  }
}