lightnessDouble method

double lightnessDouble(
  1. LightnessStyle lightness
)

Implementation

double lightnessDouble(LightnessStyle lightness) {
  double ret = 0;
  switch (lightness) {
    case LightnessStyle.zero:
      ret = 0;
      break;
    case LightnessStyle.one:
      ret = 10;
      break;
    case LightnessStyle.two:
      ret = 20;
      break;
    case LightnessStyle.three:
      ret = 30;
      break;
    case LightnessStyle.four:
      ret = 40;
      break;
    case LightnessStyle.five:
      ret = 50;
      break;
    case LightnessStyle.six:
      ret = 60;
      break;
    case LightnessStyle.seven:
      ret = 70;
      break;
    case LightnessStyle.eight:
      ret = 80;
      break;
    case LightnessStyle.nine:
      ret = 90;
      break;
    case LightnessStyle.ninetyFive:
      ret = 95;
      break;
    case LightnessStyle.ninetyEight:
      ret = 98;
      break;
    case LightnessStyle.oneHundred:
      ret = 100;
      break;
  }
  ret /= 100.0;
  return ret;
}