lastDayOfMonth method

DateTime lastDayOfMonth (DateTime month)

Returns a new DateTime in the last day of the given month

Implementation

static DateTime lastDayOfMonth(DateTime month) {
  return nextMonth(month).subtract(new Duration(days: 1));
}