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