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