getByInt static method

UserGenderEnum getByInt(
  1. int index
)

根据Int类型值获得枚举 index Int常量 Return 枚举对象

Implementation

static UserGenderEnum getByInt(int index) => UserGenderEnum.values[index];