lastDateOfMonth static method

DateTime lastDateOfMonth()

Implementation

static DateTime lastDateOfMonth() {
  var now = DateTime.now();
  var lastDate = DateTime(now.year, now.month + 1, 0);
  return lastDate;
}