CodePointSetData.nfcInertWithProvider constructor

CodePointSetData.nfcInertWithProvider(
  1. DataProvider provider
)

Create a set for the Nfc_Inert property, using a particular data source.

See the Rust documentation for NfcInert for more information.

Throws DataError on failure.

Implementation

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