validateNativeJulianDate<S extends TimeScale> function
Validates fields that can narrow at the native split-JD ABI boundary.
Implementation
void validateNativeJulianDate<S extends TimeScale>(JulianDate<S> value) {
// The native Dart VM already represents `int` as a signed 64-bit value,
// matching the C ABI field. Keep this hook so extension packages can
// validate a complete split-JD before manually embedding it in a struct.
if (!value.dayFraction.isFinite) {
throw ArgumentError.value(
value.dayFraction,
'dayFraction',
'must be finite',
);
}
}