endOfMonth property

Date endOfMonth

Return the end of the month for this date. The result will be in the local timezone.

Implementation

Date get endOfMonth => Date(year: year, month: month + 1).subDays(1);