fromIntegerValue static method

BidiClass? 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 BidiClass? fromIntegerValue(int other) {
  final result = _icu4x_BidiClass_from_integer_value_mv1(other);
  if (!result.isOk) {
    return null;
  }
  return BidiClass.values[result.union.ok];
}