fromIntegerValue static method

GeneralCategory? fromIntegerValue(
  1. int other
)

Convert from an integer using the ICU4C integer mappings for General_Category Convert from an integer value from ICU4C or CodePointMapData

Implementation

static GeneralCategory? fromIntegerValue(int other) {
  final result = _icu4x_GeneralCategory_from_integer_value_mv1(other);
  if (!result.isOk) {
    return null;
  }
  return GeneralCategory.values.firstWhere((v) => v._ffi == result.union.ok);
}