toInt static method

int toInt(
  1. UserGenderEnum level
)

将枚举转换为整型

Implementation

static int toInt(UserGenderEnum level) => level.index;