extraDaysEnd property

int get extraDaysEnd

Returns the number of extra days at the end of a calendar table when the end of currently visible month is something other than Sunday.

Implementation

int get extraDaysEnd {
  // date.weekday returns an int in the range of 1..7, Monday to Sunday,
  // respectively. Subtract this day from the week and you know the number
  // of extras.
  return 7 - lastDateInThisMonth.weekday;
}