fromValue static method

PwrZoneCalc fromValue(
  1. int value
)

Implementation

static PwrZoneCalc fromValue(int value) {
  switch (value) {
    case 0:
      return PwrZoneCalc.custom;
    case 1:
      return PwrZoneCalc.percentFtp;
    default:
      throw ArgumentError.value(value);
  }
}