CodePointMapData8.hangulSyllableTypeWithProvider constructor

CodePointMapData8.hangulSyllableTypeWithProvider(
  1. DataProvider provider
)

Create a map for the Hangul_Syllable_Type property, using a particular data source.

See the Rust documentation for HangulSyllableType for more information.

Throws DataError on failure.

Implementation

factory CodePointMapData8.hangulSyllableTypeWithProvider(DataProvider provider) {
  final result = _icu4x_CodePointMapData8_create_hangul_syllable_type_with_provider_mv1(provider._ffi);
  if (!result.isOk) {
    throw DataError.values[result.union.err];
  }
  return CodePointMapData8._fromFfi(result.union.ok, []);
}