daysInMonth property

  1. @useResult
int get daysInMonth

The number of days in the month.

LocalDateTime(2019, 2).daysInMonth; // 28
LocalDateTime(2020, 2).daysInMonth; // 29

Implementation

@useResult int get daysInMonth => _native.daysInMonth;