create static method
- Locale locale
Creates a new CalendarKind for the specified locale, using compiled data.
See the Rust documentation for new
for more information.
Implementation
static CalendarKind create(Locale locale) {
final result = _icu4x_CalendarKind_create_mv1(locale._ffi);
return CalendarKind.values.firstWhere((v) => v._ffi == result);
}