getEloColumn method Null safety
- String duration
 
It gives the desired column given the duration.
Returns a List<double>.
Implementation
static List<double> getEloColumn(String duration){
  switch (duration) {
    case "Fast":
      return eloMatrix.elementAt(0);
    case "Mid":
      return eloMatrix.elementAt(1);
    case "Large":
      return eloMatrix.elementAt(2);
    case "Marathon":
      return eloMatrix.elementAt(3);
    default:
      return eloMatrix.elementAt(0);
  }
}