getGrade method

String? getGrade(
  1. String system
)

Get grade by system name

Implementation

String? getGrade(String system) {
  switch (system.toLowerCase()) {
    case 'vscale':
    case 'v_scale':
      return vScale;
    case 'yds':
      return yds;
    case 'french':
      return french;
    case 'font':
    case 'fontainebleau':
      return font;
    case 'uiaa':
      return uiaa;
    default:
      return null;
  }
}