IsoDate constructor
Creates a new IsoDate from the specified date.
See the Rust documentation for try_new_iso
for more information.
Throws CalendarError on failure.
Implementation
factory IsoDate(int year, int month, int day) {
final result = _icu4x_IsoDate_create_mv1(year, month, day);
if (!result.isOk) {
throw CalendarError.values[result.union.err];
}
return IsoDate._fromFfi(result.union.ok, []);
}