daysInMonth property

int get daysInMonth

Implementation

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