LineSegmenter.dictionaryWithOptions constructor

LineSegmenter.dictionaryWithOptions(
  1. LineBreakOptions options, [
  2. Locale? contentLocale
])

Construct a LineSegmenter with custom options and dictionary payload data for Burmese, Khmer, Lao, and Thai, using compiled data.

See the Rust documentation for new_dictionary for more information.

Implementation

factory LineSegmenter.dictionaryWithOptions(LineBreakOptions options, [Locale? contentLocale]) {
  final temp = _FinalizedArena();
  final result = _icu4x_LineSegmenter_create_dictionary_with_options_v2_mv1(contentLocale?._ffi ?? ffi.Pointer.fromAddress(0), options._toFfi(temp.arena));
  return LineSegmenter._fromFfi(result, []);
}