create static method
- DataProvider provider
Construct an `SentenceSegmenter`
.
Throws DataError on failure.
Implementation
static SentenceSegmenter create(DataProvider provider) {
final result = _icu4x_SentenceSegmenter_create_mv1(provider._ffi);
if (!result.isOk) {
throw DataError.values[result.union.err];
}
return SentenceSegmenter._fromFfi(result.union.ok, []);
}