fromType static method

int fromType(
  1. NERoomBeautyEffectType beautyType
)

Implementation

static int fromType(NERoomBeautyEffectType beautyType) =>
    (NERoomBeautyEffectType.values
        .firstWhere(
          (element) => element == beautyType,
          orElse: () => NERoomBeautyEffectType.kUnknownType,
        )
        .index);