lastDayOfMonth method

DateTime lastDayOfMonth()

Create a new last date of this month.

Implementation

DateTime lastDayOfMonth() {
  final nextMonth = this.firstDayOfMonth().nextMonth();
  return nextMonth.subtract(Duration(days: 1));
}