getColor method

Color getColor(
  1. int i,
  2. int l,
  3. int index
)

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;
}