endOfMonth property

DateTime get endOfMonth

Returns the last moment of this date's month.

Implementation

DateTime get endOfMonth =>
    DateTime(year, month + 1).subtract(const Duration(milliseconds: 1));