getScreenshareStreamByUserId method

WrappedMediaStream? getScreenshareStreamByUserId(
  1. String userId
)

Implementation

WrappedMediaStream? getScreenshareStreamByUserId(String userId) {
  final stream =
      screenshareStreams.where((stream) => stream.userId == userId);
  if (stream.isNotEmpty) {
    return stream.first;
  }
  return null;
}