endOfMonth property

DateTime get endOfMonth

End of month (last day)

Implementation

DateTime get endOfMonth => DateTime(year, month + 1, 0).endOfDay;