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