getConnection method

Connection getConnection(
  1. String userId
)

Implementation

Connection getConnection(String userId) {
  return connections.firstWhere((connection) => connection.userId == userId);
}