CodePointMapData16.scriptWithProvider constructor
- DataProvider provider
Create a map for the Script
property, using a particular data source.
See the Rust documentation for Script
for more information.
Throws DataError on failure.
Implementation
factory CodePointMapData16.scriptWithProvider(DataProvider provider) {
final result = _icu4x_CodePointMapData16_create_script_with_provider_mv1(provider._ffi);
if (!result.isOk) {
throw DataError.values[result.union.err];
}
return CodePointMapData16._fromFfi(result.union.ok, []);
}