getUserMediaStreamByUserId method

WrappedMediaStream? getUserMediaStreamByUserId(
  1. String userId
)

Implementation

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