reorderLine method

String? reorderLine(
  1. int rangeStart,
  2. int rangeEnd
)

Reorder a line based on display order. The ranges are specified relative to the source text and must be contained within this paragraph's range.

See the Rust documentation for level_at for more information.

Implementation

String? reorderLine(int rangeStart, int rangeEnd) {
  final write = _Write();
  final result = _icu4x_BidiParagraph_reorder_line_mv1(_ffi, rangeStart, rangeEnd, write._ffi);
  if (!result.isOk) {
    return null;
  }
  return write.finalize();
}