EControllerHapticType.fromValue constructor

EControllerHapticType.fromValue(
  1. int value
)

Implementation

factory EControllerHapticType.fromValue(int value) {
  switch (value) {
    case 0:
      return EControllerHapticType.off;
    case 1:
      return EControllerHapticType.tick;
    case 2:
      return EControllerHapticType.click;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'EControllerHapticType'. The value was: '$value'",
      );
  }
}