fromIntegerValue static method

Script? fromIntegerValue(
  1. int other
)

Convert from an integer value from ICU4C or CodePointMapData

See the Rust documentation for from_icu4c_value for more information.

Implementation

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