daysUntilEndOfYear method

int daysUntilEndOfYear()

Returns the number of days until the end of the year.

Implementation

int daysUntilEndOfYear() => endOfYear.difference(startOfDay).inDays;