lastDayOfMonth property
Returns the last day of the month for the given date.
Implementation
date get lastDayOfMonth => DateTime(year, month + 1, 0);
Returns the last day of the month for the given date.
date get lastDayOfMonth => DateTime(year, month + 1, 0);