fromValue static method

DiveGasStatus fromValue(
  1. int value
)

Implementation

static DiveGasStatus fromValue(int value) {
  switch (value) {
    case 0:
      return DiveGasStatus.disabled;
    case 1:
      return DiveGasStatus.enabled;
    case 2:
      return DiveGasStatus.backupOnly;
    default:
      throw ArgumentError.value(value);
  }
}