getLastMonthLastDay static method

int getLastMonthLastDay(
  1. HeaderOptions headersStyle
)

Implementation

static int getLastMonthLastDay(HeaderOptions headersStyle) {
  final cMonth = CalendarUtils.getPartByInt(format: PartFormat.MONTH);
  if (cMonth - 1 < 1) {
    return -1;
  }
  return CalendarUtils.getDays(headersStyle.weekDayStringType, cMonth - 1).keys.last;
}