daysInCurrentMonth property

int get daysInCurrentMonth

Returns the number of days in the current month.

Implementation

int get daysInCurrentMonth => DateTime(year.value, month.value + 1, 0).day;