getColor method
Implementation
Color getColor(int i, int l, int index) {
if (teams.length > i + 1) {
if (teams[i + 1].length > l && teams[i].length > index) {
if (onSameTeam != null) {
if (onSameTeam!(teams[i][index], teams[i + 1][l])) {
return winnerConnectorColor ?? Colors.yellow;
}
}
}
}
return connectorColor ?? Colors.grey;
}