dayOfYear static method
Computes the ordinal day of the year.
Dates.dayOfYear(2023, 4, 1); // 91
Implementation
@useResult static int dayOfYear(int year, int month, int day) => _cumulative[month - 1] + day + (leapYear(year) && month > 2 ? 1 : 0);