fromIntegerValue static method

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